This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: 32 bit/ 64 bit bootstrapping
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 14, 2009
09:25 AM
32 bit/ 64 bit bootstrapping
Hi all,
I have a basic msi project which has a hybrid setup. It generates two seperate setup.exe depending on the release flags (32bit/64bit).
I need to bootstrap these two in such a way that depending on the users system 32/64 launch the corresponding setup.exe.
Does InstallShield have any functionality to help me achieve this.
Would really appreciate if anybody could point me to a link, tutorial which has some details about this.
Thanks in advance.
I have a basic msi project which has a hybrid setup. It generates two seperate setup.exe depending on the release flags (32bit/64bit).
I need to bootstrap these two in such a way that depending on the users system 32/64 launch the corresponding setup.exe.
Does InstallShield have any functionality to help me achieve this.
Would really appreciate if anybody could point me to a link, tutorial which has some details about this.
Thanks in advance.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2009
09:51 AM
Anybody there?:(
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2009
12:51 PM
You can use an installscript project that detects the cpu-type of the target system and launches the appropriate setup.exe
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2009
02:43 PM
Thanks for your reply.
Please could you provide some more details. Like which function (LaunchAppAndWait?) to use and at what point should the code be doing this.
Please could you provide some more details. Like which function (LaunchAppAndWait?) to use and at what point should the code be doing this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
11:38 AM
Not sure if this helps, but here's what I do in my installscript:
//check if the system is 64bit..if so then continue
if SYSINFO.bIsWow64 != 0 then
//disable 64bit redirection
Disable(WOW64FSREDIRECTION );
//do whatever you need to with redirection turned off here..for instance copy
dllPath = WINSYSDIR64 ^ "my64.dll";
LongPathToQuote(dllPath,TRUE);
dllPath2 = szDLLFileLocation + "\\my64.dll";
LongPathToQuote(dllPath2,TRUE);
XCopyFile(dllPath2, WINSYSDIR64 , COMP_UPDATE_VERSION | SHAREDFILE);
DeleteFile(WINSYSDIR ^ "my64.dll");
appPathReg = WINSYSDIR64^"Regsvr32.exe";
LaunchAppAndWait(appPath," /s " + dllPath, WAIT);
//Enable redirection back
Enable(WOW64FSREDIRECTION );
endif;
//check if the system is 64bit..if so then continue
if SYSINFO.bIsWow64 != 0 then
//disable 64bit redirection
Disable(WOW64FSREDIRECTION );
//do whatever you need to with redirection turned off here..for instance copy
dllPath = WINSYSDIR64 ^ "my64.dll";
LongPathToQuote(dllPath,TRUE);
dllPath2 = szDLLFileLocation + "\\my64.dll";
LongPathToQuote(dllPath2,TRUE);
XCopyFile(dllPath2, WINSYSDIR64 , COMP_UPDATE_VERSION | SHAREDFILE);
DeleteFile(WINSYSDIR ^ "my64.dll");
appPathReg = WINSYSDIR64^"Regsvr32.exe";
LaunchAppAndWait(appPath," /s " + dllPath, WAIT);
//Enable redirection back
Enable(WOW64FSREDIRECTION );
endif;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
04:24 PM
Thanks for your replies. I was able to launch the corresponding setup.exe depending upon the user system.
But i still have a problem. Now as the exe's are InstallscriptMSI projects and i am launching them through another InstallScript project I have two sets of dialogs, One for the InstallScript project and the other when it launches the setup_32.exe or setup_64.exe.
Is it somehow possible to hide/suppress(silent) the dialogs for Installscript project but display the dialogs for the MSI project which it launches.
Sorry to be asking so many questions but I am really lost trying to figure this out :confused:
But i still have a problem. Now as the exe's are InstallscriptMSI projects and i am launching them through another InstallScript project I have two sets of dialogs, One for the InstallScript project and the other when it launches the setup_32.exe or setup_64.exe.
Is it somehow possible to hide/suppress(silent) the dialogs for Installscript project but display the dialogs for the MSI project which it launches.
Sorry to be asking so many questions but I am really lost trying to figure this out :confused:
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)