Aug 18, 2011
04:49 PM
WalterT wrote: First of all, bryanwolf thanks for your post back in 2008! It helped me a lot today in 2011! Our programmer was trying to start a service which was using a VC SXS runtime, which he was installing via Merge module and he kept getting an error about it which rolled the installation back. The problem was it is an older merge module for which there is no matching redistributable to be found. Our way of dealing with it (using the info in the post of bryanwolf) was to make our own prerequisite that only installed that merge module, and install it before our main installer with the service. It worked like a charm. Hope this helps someone. Another option is to create your own prerequisite that installs vcredist.exe (Microsoft allows it to be redistributed in your installer). The difference between the two are that prerequisites get installed before your msi even runs, while merge modules are installed along side all your files. This is why you have to wait until InstallFinialize to use MFC and the like for installing the vc runtimes merge modules. I've successfully gotten MFC to work in the UI Sequence using this method, at it may resolve the problems mentioned here.
... View more
Mar 09, 2011
06:18 PM
Poltron wrote: You need to add a new property in your Basic MSI. MSIRESTARTMANAGERCONTROL with a value of Disable and you'll no longer see the FilesInUse dialog. Rather than simply adding it as a property to have it globally turned off by default, I set the property at run time where we know it doesn't work for us; uninstall: Property-Set custom action (type 51): Install UI Sequence: After MaintananceWelcome Install UI Condition (_IsMaintenance="Remove") Property Name: MSIRESTARTMANAGERCONTROL Property Value: Disable I've blogged how I came to this solution at buildmaestro.wordpress
... View more
Mar 08, 2011
08:50 PM
SteveLovell wrote: I too need to know how to use MSIRESTARTMANAGERCONTROL, I have seen this: http://msdn.microsoft.com/en-us/library/aa370377(v=vs.85).aspx But I am using a Basic MSI project, I dont mind converting to an Installscript MSI if I need to, but I still dont know how to use the MSIRESTARTMANAGERCONTROL. You need to add a new property in your Basic MSI. MSIRESTARTMANAGERCONTROL with a value of Disable and you'll no longer see the FilesInUse dialog.
... View more
Feb 15, 2011
08:38 PM
Actually, this may be better. Install watch Pro http://www.brothersoft.com/installwatch-download-9407.html
... View more
Feb 15, 2011
06:44 PM
That product seems to no longer be available. Maybe try: http://www.innovative-sol.com/uninstaller/ Advanced Uninstaller
... View more
Feb 03, 2011
10:38 PM
I guess Express doesn't have that feature. The setup.exe bootstrapper can pass arguments to msiexec.. do a setup.exe /? and check out the /v argument.
... View more
Feb 03, 2011
06:35 PM
RobertDickau wrote: I suppose it's that the UI sequence doesn't "do" anything---doesn't make any system changes---so (the thinking presumably goes) why would properties need to trickle back from the Execute sequence process to the UI sequence process? I can think of a million and 1 reasons for the UI to display properties set in the Execute sequence. Execute makes system changes, the UI displays status of those changes. In programming this is similar to a Model View Controller. Execute Sequence-Server: Runs our installscript to set the filename of a shortcut to a pdf of the language the user chose. example (GSM_Enu.pdf). The resulting property, [HELP_FILE], is added as the target value of a shortcut. UI Sequence-Client: On the SetupCompleteSuccess dialog we display a button for the user to click that SHOULD open the GSM_Enu.pdf. Well, it doesn't work because the "Server" won't share it's properties with the "Client", so we have to revert to hacks in order to transfer the information back to the UI. Perhaps I'm missing a simpler way of accomplishing this...
... View more
Jan 14, 2011
06:29 PM
I had a problem like this where the major upgrade was uninstalling prerequisites and not fully installing them, leaving me with a broken machine. 😞 We changed to handling the major upgrade ourselves. In the upgrade table we have an entry for: MAJORUPGRADE_DETECTION with the advanced tab settings: Upgrade Code: {00000000-0000-0000-0000-000000000000} Detect Property: MAJORUPGRADEGUID Then a custom action: MSI CA type number: 98 working dir: SystemFolder Filename & Command line msiexec.exe /x[MAJORUPGRADEGUID] /qb /passive Then we call this from the custom action "Install" button in the UI Sequence. Doesn't work for silent installs and we have another CA to abort major upgrades if it's a silent install. Not a perfect solution, but it's been working for the last 2 years.
... View more
Jan 14, 2011
05:57 PM
tpascal wrote: Thanks Walt! Currently I'm not sure where I'm "installing the msi"... Install Shield builds me a setup.exe file.. and I just run that... Media > Releases > Setup.exe tab. "MSI Command-Line Arguments".
... View more
Oct 28, 2010
10:39 PM
I thought I'd share a discovery that IS support was not able to provide help with. We experienced a problem when installing on x64 machines where the installer would abort and rollback the install. Our app is x32, so we had to create a custom app pool and turn on the 'enable 32bit apps'. In the log it's failing on the following lines: InstallShield 15:38:40: Value returned for Enable32bitAppOnWin64: 0 InstallShield 15:38:40: SetAspversion: machine is 64-bit and IIS running in a bit mode other than the currently selected mode InstallShield 15:38:40: Error with IISRT: -2172 Action ended 15:38:40: InstallFinalize. Return value 3. Also worth mentioning,.. If you perform the install a second time, the installer completes successfully. So as a workaround, one could install twice, then navigate to the IIS manager and turn on the 'enable 32 bit mode' on the custom app pool and also set the application to use the custom app pool. Here's what was happening: If IIS6_COMPATIBILITY is turned on in a x64 platform (this is set in the control panel's add remove features) the first install aborts with a rollback. Even though we are installing to II7, it's acting like II6 which didn't support application pools that allowed 32bit applications, and so our property set "enable 32bit apps" is ignored. The installer is doing bitness validation (our app is x32, application pool is set to x64; abort and rollback). We may be able to override this IIS6_COMPATIBILITY behavior by setting a property in the installer. (I don't have that property on hand, perhaps I'll update this post when I figure out a fix!) UPDATE: It turned out that the build engineer prior to myself added IISPREFERLEGACYOBJECTS=1 and that was the cause of this behavior. He originally did this to become compatible on x64 machines that used application pools, before Installshield had added support for app pools in basic msi. We were able to get the installer to disregard the IIS6 compatibility the user enabled under the control panel > add remove windows features with the following: Add a property to the project with a value of 0. IISPREFERLEGACYOBJECTS = 0 (or remove it entirely) http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q113487 Very simple fix! We previously told our customer's to enable this setting so our application would run on iis7 before we added application pools to our project. Now that we have added application pools, this setting was making our upgrade deployments fail as discussed above. Adding this property with a value of 0 was the fix!
... View more
Labels
- Labels:
-
InstallShield 2010
Apr 23, 2010
02:54 PM
RobertDickau wrote: Another option (assuming an MSI project) is to create a non-advertised shortcut with Target [WindowsFolder]explorer.exe and Arguments /select,"[ProgramFilesFolder]Seagull\BarTender Suite\SDK\Assemblies". (If there's any chance the user can change the installation directory, you might use [INSTALLDIR] or the like instead of [ProgramFilesFolder]etc.) Thank you, this worked. Oddly though, I had to add it as an 'advertised shortcut' instead of just the 'add shortcut' menu item. 'add shortcut' pops up a dialog box and I have to locate a file, and [windowFolder] is not a valid selection and it does not let you continue. So I first chose 'add advertised shortcut' and then changed the advertised property to no. THEN I was able to use the settings you shared above. Thanks!
... View more
Dec 12, 2009
12:10 AM
Hi, We had a similiar problem, but not exactly what the OP mentioned. On a major upgrade, the required vc8 runtimes (and other Winsxs friends) were not upgrading. We now have a solution that has been working well over our last few releases: Basically, we are abandoning the minor/major upgrade functionality of msi and using the power of commandline msiexec to uninstall the previous product if it's detected. Here we go: instructions done in IS 2008 / Basic MSI 1. Create a new Media\Upgrades entry: I called ours MajorUpgradeDetection upgrade code: {00000000-0000-0000-0000-000000000000} min ver include min ver: no max ver: Include Max ver: no Language: Exclude specifc langs: No Detect Only: YES Detect Prop (ours is still set to): ISACTIONPROP3 Only remove ..: Continue on failure: no migrate feature states: (probably should be no): yes 2. create custom action MSI Type Number: 98 ours is named: UnInstallPreviousVersion working folder: SystemFolder Filename and command (ISACTIONPROP3 contains the GUID of previous product that was detected): msiexec.exe /x[ISACTIONPROP3] /qb /passive return proc: synch (ignore) in-script exec: Immediate exec Execution Scheduling: Always execute (all are "absent from sequence") 3. Onto the User Interface\dialogs... ReadyToInstall dialog's behavior link.. Click InstallNow control Add a new event as follows: event: Do Action - Argument: UnInstallPreviousVersion - Condition: ISACTIONPROP3 The downside of this method is that it only works in the UI sequence (will not work in silent installs). You can change this, but our company had a requirement to display the version dialog to user as well as a warning that thier previous version would be removed. For directions on the warning message to users.. here it is: On User Interface\Dialogs\InstallWelcome dialog: a. Create a text box with the text you want to display if a major upgrade will be performed, .. ours is named "MajorUpgradeWarning". b. Navigate to this dialogs behavior page... then click the 'conditions' tab at the bottom of the screen. Click on MajorUpgradeWarning c. We have a Show action with ISACTIONPROP3 d. We also have a hide action: Not ISACTIONPROP3 As I mentioned, this only works in the UI sequence, not silent installs. So we then had a requirement to block major upgrades during silent installs.... a. Navigate to Behavior and Logic\Custom Actions b. I created a MSI Type Number 19 action as follows: We named it: SILENT_INSTALL_ABORT_ON_MAJOR_UPGRADE Error Msg (Probably should be translated text though): "A version of this software is already installed, please uninstall before attempting a silent install." Return Proc: sync (check exit code) In-Script: Immediate Exec Execut Scheduling: always execute Install Exec Sequence: After ISPreventDowngrade (if you dont' have that,.. it's basically after the "FindRelatedProducts" CA) Exec condition: ISACTIONPROP3 And UILevel=2
... View more
Apr 01, 2009
09:46 PM
Did not see this in the forum so I thought I'd pose the question to the community: I have a requirement to create a start menu shortcut titled "Explore Directory" or something similiar that when clicked would open an explorer window view of a folder's contents. I was able to create a shortcut to do this manually on my development box by using the following target for a the shortcut: %SystemRoot%\explorer.exe /select,"%ProgramFiles%\Seagull\BarTender Suite\SDK\Assemblies" However, creating a shortcut in the shortcuts menu in IS seemed a bit limiting to allow for this. Anyone had success with this?
... View more
Labels
- Labels:
-
InstallShield 2008
Latest posts by Poltron
Subject | Views | Posted |
---|---|---|
1516 | Aug 18, 2011 04:49 PM | |
936 | Mar 09, 2011 06:18 PM | |
936 | Mar 08, 2011 08:50 PM | |
668 | Feb 15, 2011 08:38 PM | |
668 | Feb 15, 2011 06:44 PM | |
1228 | Feb 03, 2011 10:38 PM | |
1351 | Feb 03, 2011 06:35 PM | |
1124 | Jan 14, 2011 06:29 PM | |
1228 | Jan 14, 2011 05:57 PM | |
584 | Jan 14, 2011 05:45 PM |
Activity Feed
- Posted Re: Failed to self register 64-bit COM components on InstallShield Forum. Aug 18, 2011 04:49 PM
- Posted Re: How suppress the restart notification dialog in Vista on InstallShield Forum. Mar 09, 2011 06:18 PM
- Posted Re: How suppress the restart notification dialog in Vista on InstallShield Forum. Mar 08, 2011 08:50 PM
- Posted Re: Determine ALL system changes made by an Installer (any tools?) on InstallShield Forum. Feb 15, 2011 08:38 PM
- Posted Re: Determine ALL system changes made by an Installer (any tools?) on InstallShield Forum. Feb 15, 2011 06:44 PM
- Posted Re: Simple situation can't get working on InstallShield Forum. Feb 03, 2011 10:38 PM
- Posted Re: Why some properties are not accesible from SetupCompleteSuccess dialog on InstallShield Forum. Feb 03, 2011 06:35 PM
- Posted manual major upgrades on InstallShield Forum. Jan 14, 2011 06:29 PM
- Posted Re: Simple situation can't get working on InstallShield Forum. Jan 14, 2011 05:57 PM
- Posted use env on InstallShield Forum. Jan 14, 2011 05:45 PM
- Posted Enable32bitAppOnWin64 not set in IIS7 on InstallShield Forum. Oct 28, 2010 10:39 PM
- Posted Re: GAC and NGEN with installshield 2008 on InstallShield Forum. Jun 21, 2010 05:06 PM
- Posted this worked on InstallShield Forum. Apr 23, 2010 02:54 PM
- Posted We WERE also having problems with built-in msi major upgrades on InstallShield Forum. Dec 12, 2009 12:10 AM
- Posted Add "Explore Directory" shortcut to start menu. on InstallShield Forum. Apr 01, 2009 09:46 PM