May 28, 2010
11:38 AM
If you are using InstallScript, you need to use an MsiSetProperty call to assign the value of the variable to the property after you get the variable set. (e.g., call AskText to get svPropertyName, then call MsiSetProperty to assign the value of svPropertyName to the property MY_PROPERTY_NAME). FYI, you should be doing something to validate the username/password combo or make sure in your testing that using an invalid combo doesn't crash the install.
... View more
Apr 13, 2010
02:14 PM
I'm using the concept in my InstallScript MSI setup and yes, it does work. Use Direct Editor and check the ISIISProperty table - MetaDataValue column. Your variable name will actually be there, not the asterisks.
... View more
Apr 06, 2010
09:12 AM
Thanks - looks like that should do it.
... View more
Apr 06, 2010
08:14 AM
I tried: if (GetEnvVar("CMDCMDLINE", svTemp)<0) then MessageBox("Unable to find env var CMDCMDLINE", INFORMATION); else MessageBox("CMDCMDLINE : "+svTemp+":", INFORMATION); endif; and I get the "unable to find" message. So it appears that the CMDCMDLINE env var does not exist when the script is running. I'm guessing that is why the /z parameter exists to pass info to CMDLINE - but that doesn't help me since I'm trying to replicate the entire command line used to start setup.exe.
... View more
Mar 31, 2010
08:13 AM
I have an InstallScript MSI project. I know how to use /z to pass info to the CMDLINE InstallScript variable. What I'm looking for, though, is to access the entire set of arguments used when setup.exe was called. My problem starts with uninstalling from ARP - in my OnBegin I check for certain processes and if they are running they need to be shut down and the system rebooted before the uninstall can try again. I'm trying to set up RunOnce to restart the uninstall after reboot and need to pass it everything from the original commandline used by the ARP call. I know I'm probably missing something obvious, but at the moment I'm coming up empty. Can anyone enlighten me? Thanks.
... View more
Labels
- Labels:
-
InstallShield 2010
Mar 24, 2010
02:37 PM
How do I upgrade an InstallScript MSI project in an automated build process when InstallShield gets upgraded? I have an InstallScript MSI project. I use the automation interface to update the project file before calling ISCmdBld. I recently applied SP1 for IS2010. That requires my ISM file to be upgraded - OpenProject returns an error 1101. But the only info I have found for upgrading a project with a commandline tool is the -u switch for ISCmdBld which is flagged as "Basic MSI only". Am I missing something?
... View more
Labels
- Labels:
-
InstallShield 2010
Mar 22, 2010
07:55 AM
Thanks - I had not. (Not sure why I didn't find that thread when I was looking before posting my original message - I have the worst luck when it comes to using forum search engines.) That thread appears to describe my exact issue. If I don't follow up on this post, you can assume the hotfix took care of my issue.
... View more
Mar 19, 2010
12:31 PM
I have managed to get my InstallScript MSI project to simply 'quit' part way through due to a possible bug in (or misuse of) the new Text File Changes View functionality. I have an INI file that comes to me from the component developer that needs to have a path to another file 'corrected' based on INSTALLDIR. The original line looks something like this: param01=...somestuff..C:\Work Space\Folder1\Folder2\dist\filename.ext which is what I set up the search field to be if I set up the replace to be: param01=...somestuff..[INSTALLDIR]Folder1\Folder2\dist\filename.ext everything was OK - but the actual destination path didn't have the '\dist' folder, so I needed to fix that. When I changed the replace to: param01=...somestuff..[INSTALLDIR]Folder1\Folder2\filename.ext things went haywire. As far as I can tell, the custom action call for the replace simply bombs out and the install simply quits. No rollback, no error message - it just simply terminates. I have worked around my issue for now by manually fixing the INI file before consuming it. Changing the ini line to: param01=...somestuff..ROOTINSTALLfilename.ext and setting the search to be: ROOTINSTALL and setting the replace to be: [MYINIFOLDER] I probably wasn't using the new feature as it was intended, but having it silently terminate after a partial install because I fed it something unintended isn't cool.
... View more
Labels
- Labels:
-
InstallShield 2010
Feb 26, 2010
02:54 PM
Finally getting around to trying to automate updating and building an existing InstallScript MSI project. This is also my first foray into using the automation interface, so please forgive the noobiness. I skimmed the automation interface stuff in help and nothing jumped out, so maybe I missed the obvious. What I need to automate is the equivalent of going into the Component Services view in the IDE, right-clicking a currently-included complus component and choosing to 'refresh from system', then alter some of the settings back the way they were before the 'refresh', such as the 'runas' account info. This project is the server side of the complus picture. I also have a Basic MSI that has the proxy side of things that I'll want to automate. Pointers into the doc appreciated, code examples would be absolutely wonderful. Thanks, Mike
... View more
Labels
- Labels:
-
InstallShield 2010
Jul 31, 2008
11:09 AM
I'm not 100% sure that this is the answer, but I was having problems getting the install to run on a 2008 server (it choked on the app pool setup and rolled back) and found this thread. I copied the 'unofficial' iishelper.dll to my build machine - the resulting install ran OK on 2008, plus appears to have been the fix for my password problem on the 2003 server as that issue has also 'gone away'. Is there an 'official' fix that includes the iishelper.dll? Mike
... View more
Jul 29, 2008
10:34 AM
I have an InstallScript MSI project that is setting up a web site. We need it to set up a run as identity for the App Pool. This is almost working, but the password is not getting set properly when I try to use a Property instead of a hard-coded entry. In the IDE, I specified [ComputerName]\[RUNASUSER] for the username - that works fine. I typed in [RUNASPWD] in the password field, but since that field shows only dots, I checked the UserPassword column in the ISIISAppPool table using the direct editor just to make sure. When I run the install I get no errors, but I find that I have to go into the IIS manager and reset the password in order for the site to run properly. If I build the install and type the password directly into the IDE, it works. Can I use a Property for the password on the App Pool identity, and if so, how? thanks, Mike
... View more
Labels
- Labels:
-
InstallShield 2008
Jul 29, 2008
10:01 AM
This one has been a thorn in my side, too. There is no way to extract the password out of the COM+ parameters (you can extract the username), but if you don't have a valid UID/PWD combo during the upgrade it will fail. My solution was to add a UID/PWD dialog during upgrades as well as new installs. I also found that if both of those properties were set to NULL then the install would also work, so I allow a "set it later" option. The only other possible solution I could think of was to have the install store the info somewhere for later retrieval, but that was a security concern I wasn't willing to try to defend.
... View more
Apr 30, 2008
01:52 PM
I narrowed down the cause to the shared dll reference count. The two components the IDE automatically created for this complus app were flagged as 'shared', so with the previous release of the product installed, the reference count was at '1' before attempting the upgrade. It ended up at '2' after the upgrade instead of staying at 1 (as I believe it should have). So on uninstall the ref count dropped only back to 1 and the file and its associated registry entries were left behind. If I change the 'shared' flag to 'no' for these components in the new build I am running as an upgrade, the count ends up as '0' after the upgrade and I end up with a clean uninstall. This gives me a short-term fix, but there are plans to divide this product into two standalone install packages and this particular complus app would be common to both. Unless I misunderstand the purpose of the flag and the shared dll count, this is going to be a problem for me again very soon. In my 'future case', wouldn't the matching components in the two packages have to be flagged as 'shared'?
... View more
Apr 30, 2008
01:34 PM
also, did you happen to include ARPSYSTEMCOMPONENT=1 in the command line you used for the silent install? That will prevent the product from showing up in the ARP view.
... View more
Apr 30, 2008
09:06 AM
Installscript MSI project with 6 COMplus components. For our next release, one of the complus apps was altered to add a new interface. I 'refreshed' the app in the Component Services view, which resulted in a new GUID for the component in my project. Changing the component guid meant I had to author the setup as a major upgrade (I tried it as a minor upgrade and it didn't work - when I ran the upgrade validation in the IDE it pointed out my mistake). My problem comes at uninstall. When I run the upgrade, the altered component gets updated and everything seems fine. But when I uninstall, it is being left behind (both the dll and a bunch of registry entries). I verified that it uninstalls properly if I run it as a first-time install on a clean machine, rather than as an upgrade. Any ideas why this is happening or how I can expose some clues? thanks
... View more
Labels
- Labels:
-
InstallShield 2008
Latest posts by mikegillow
Subject | Views | Posted |
---|---|---|
1331 | May 28, 2010 11:38 AM | |
1331 | Apr 13, 2010 02:14 PM | |
1018 | Apr 06, 2010 09:12 AM | |
1018 | Apr 06, 2010 08:14 AM | |
6664 | Mar 31, 2010 08:13 AM | |
1721 | Mar 24, 2010 02:37 PM | |
513 | Mar 22, 2010 07:55 AM | |
3511 | Mar 19, 2010 12:31 PM | |
1640 | Feb 26, 2010 02:54 PM | |
913 | Jul 31, 2008 11:09 AM |
Activity Feed
- Posted Re: Application Pools Specific User on InstallShield Forum. May 28, 2010 11:38 AM
- Posted Re: Application Pools Specific User on InstallShield Forum. Apr 13, 2010 02:14 PM
- Posted Re: How to see all command line switches used when setup.exe started? on InstallShield Forum. Apr 06, 2010 09:12 AM
- Posted Re: How to see all command line switches used when setup.exe started? on InstallShield Forum. Apr 06, 2010 08:14 AM
- Posted How to see all command line switches used when setup.exe started? on InstallShield Forum. Mar 31, 2010 08:13 AM
- Posted Automation interface - upgrading project? on InstallShield Forum. Mar 24, 2010 02:37 PM
- Posted Re: Trying to use new Text File Changes View on InstallShield Forum. Mar 22, 2010 07:55 AM
- Posted Trying to use new Text File Changes View on InstallShield Forum. Mar 19, 2010 12:31 PM
- Posted Automation interface - component services on InstallShield Forum. Feb 26, 2010 02:54 PM
- Posted Re: How to set IIS App Pool Identity and password on InstallShield Forum. Jul 31, 2008 11:09 AM
- Posted How to set IIS App Pool Identity and password on InstallShield Forum. Jul 29, 2008 10:34 AM
- Posted Re: Can I make registration of COM+ Applications conditional on InstallShield Forum. Jul 29, 2008 10:01 AM
- Posted Re: Problem with complus and major upgrade on InstallShield Forum. Apr 30, 2008 01:52 PM
- Posted Re: Does Silent install not add an entry to ARP? on InstallShield Forum. Apr 30, 2008 01:34 PM
- Posted Problem with complus and major upgrade on InstallShield Forum. Apr 30, 2008 09:06 AM
- Posted Re: OnRebooted and services on InstallShield Forum. Apr 28, 2008 03:40 PM
- Posted OnRebooted and services on InstallShield Forum. Apr 25, 2008 12:42 PM
- Posted Re: Retooling install - how to compare with predecessor? on InstallShield Forum. Jan 28, 2008 08:55 AM
- Posted Retooling install - how to compare with predecessor? on InstallShield Forum. Jan 25, 2008 09:08 AM
- Posted Re: VBScript to check for the existance of a Property on InstallShield Forum. Oct 02, 2007 05:34 PM