Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    39

    64bit suggestions

    Having had recently to update our installers to handle 64bit versions of the OSes, it would be great if SetupFactory could

    a) list the 64-bit variants of OSes in the properties of a file (under Conditions:Operating systems) so we can say install this file for 64 bit but not 32 bit.

    b) generate a 64bit installer exe (so that File System redirection and registry redirection don't come into play)

    c) support launching an application with elevated privileges (not sure if this is possible, or whether the exe must just be manifested to require admin).

    Cheers

    Adrien

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Not meant as a "solution" but viable options. I don't think you're going to get these anytime soon -- just my gut feeling...

    Quote Originally Posted by adrien View Post
    a) list the 64-bit variants of OSes in the properties of a file (under Conditions:Operating systems) so we can say install this file for 64 bit but not 32 bit.
    You can easily set a runtime condition as to if it should install or not. Which is basically what the OS Checkboxes are -- but you'd just do it in code...

    Quote Originally Posted by adrien View Post
    b) generate a 64bit installer exe (so that File System redirection and registry redirection don't come into play)
    Since 32bit apps run on 64bit, I don't see this happening; but it might...

    You can turn on/off the redirects for FILES easily with a simple API call.
    Registry is a bit more complex -- I posted a registry64.lua (Registry64 object) to replace the built in registry object; it's almost a "drop in" replacement. It's slow if you do lots of registry I/O (ie: read the entire HKLM fork)

    On my installers, all "64bit system" files go to a temp folder. From there, in post install, I disable re-direct, and then copy them to the _SystemFolder; then re-enable redirects.

    A strategy, since you want "x64 binary installer" is to "on startup" just test "is this x64?" if not, alert & abort install. Now, just disable file-redirects for the duration of the installer.

    You'll still have issues with the Registry -- but you can easily work around that too.

    Quote Originally Posted by adrien View Post
    c) support launching an application with elevated privileges (not sure if this is possible, or whether the exe must just be manifested to require admin).
    If the installer is properly elevated, then anything it launches should also be elevated. The best way to do this is with a manifest.

    You can also use "RunAs" (either command line or File.RunAs())

    -josh


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Nov 2007
    Posts
    39

    Wow64DisableWow64FsRedirection

    thanks for the tip on the script-based condition.

    I also tried using %WindowsFolder%\Sysnative to access the real system32 folder, but it's unreliable, since sysnative only exists on Vista or later, or hot-fix applied XP64 or 2k3 64 bit.

    What would be great would be an option in the file properties under advanced.

    a checkbox called "disable 64 bit file system redirection for this file"

    Internally it would then wrap the file copy with calls to the file system redirection APIs:

    Wow64DisableWow64FsRedirection
    Wow64RevertWow64FsRedirection

    etc

  4. #4
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Thanks, 64-bit compiled runtimes and everything that goes with it is currently in our suggestions database for consideration.
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts