Jan 04, 2017
01:49 PM
This is a chunk of the switch statement in the powershell script I use but I still need to run the commands shown before to register the correct version first. switch($schema){ '776' { #776 = IS2015 LogWrite "Schema is $schema using IS2015: setting ISwiAuto22.ISWiProject" $m_ISWiProj = new-object -comobject IswiAuto22.ISWiProject ;break } '775' { #775 = IS2014 LogWrite "Schema is $schema using IS2014: setting ISwiAuto21.ISWiProject" $m_ISWiProj = new-object -comobject IswiAuto21.ISWiProject ;break } '774' { #774 = IS2013 LogWrite "Schema is $schema using IS2013: setting ISwiAuto20.ISWiProject" $m_ISWiProj = new-object -comobject IswiAuto20.ISWiProject ;break } '773' { #773 = IS2012Spring LogWrite "Schema is $schema using IS2012Spring: setting ISwiAuto19.ISWiProject" $m_ISWiProj = new-object -comobject IswiAuto19.ISWiProject ;break } '772' { #772 = IS2012 LogWrite "Schema is $schema using IS2012: setting ISwiAuto18.ISWiProject" $m_ISWiProj = new-object -comobject IswiAuto18.ISWiProject ;break } }
... View more
Dec 14, 2016
10:02 AM
Hi, We run automation scripts to update versions numbers, product / package code, add components and other updates within the .ism files. This all works great but one issue I see if depending on what version of .ism file I am trying to update I need to register that particular IS .dll. even though I have all the IS versions installed on the same machine. So if I am updating a Spring2012 ism file I need to run this command prior to running my automation script. regsvr32.exe "c:\Program Files (x86)\InstallShield\2012Spring\System\ISWiAutomation19.dll" If I then want to update a 2014 ism file I would then have to run this command first: regsvr32.exe "c:\Program Files (x86)\InstallShield\2014\System\ISWiAutomation21.dll" Can, and if so how, do I get different versions registered on the same machine? Thanks, Erik
... View more
Labels
- Labels:
-
InstallShield 2014
Feb 24, 2014
01:10 PM
I found out what the issue was at the top of my .vbs I was calling the Function but it looks like that is not needed since I specify the script function under the Action section of the Common tab. Thanks for you time, Erik
... View more
Feb 24, 2014
01:05 PM
MSI (c) (E0:00) [13:56:11:422]: Cloaking enabled. MSI (c) (E0:00) [13:56:11:422]: Attempting to enable all disabled privileges before calling Install on Server MSI (c) (E0:00) [13:56:11:422]: Connected to service for CA interface. checkDefaultPort Script Started 1 checkDefaultPort Script Ending checkDefaultPort Script Started 1 checkDefaultPort Script Ending Action ended 13:56:11: checkDefaultPort. Return value 3. MSI (c) (E0:9C) [13:56:11:844]: Doing action: SetupCompleteError Here is the snippet where you can see the Script is called twice and then returns the forced -3 that I set it to. I have commented out all the code in the vbscript function except the log statement at the start and end of the script and setting the function name to -3 for the return value Function checkDefaultPort LogInfo "Script Started 1" checkDefaultPort = 3 'return success LogInfo "Script Ending" End Function Maybe its caused by my vbscript having the same name as the script function, either way its seems wrong. Thanks, Erik
... View more
Feb 21, 2014
08:18 AM
Hi, I created a vbscript custom action, usually I store them within the custom action but in this case I want to get the return value so I store it in the binary table. I have it setup to run only once...since its located in the UI and Execute sequences. I have the Return processing set to Synchronous(Check exit code) and Immediate Execution. When I run my install and review the msi.log my script is actually being run twice in a row. The script works and does what it is supposed to do...but I do not want it to run twice. Has anyone run into this issue before? How do I correct the problem. Thanks, Erik
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Feb 21, 2014
08:04 AM
Thanks for the reply. I did find CStr() call worked to reset the value without adding quotes, so when I use it later in a Dialog is displays correctly.
... View more
Feb 18, 2014
03:35 PM
I am using a property DEFAULT_PORT in my installer that I default to a specified integer value say 16315. I have a vbscript custom action that gets the session.property("DEFAULT_PORT") and then determines if in fact the port is open..if its not it upticks the value until an open port if found. The problem I am having is when I need to store the new integer value in the property. (defaultPort is the open port we are going to set DEFAULT_PORT to) This does not work: ( you do not see the value being set in the msi.log file) Session.Property("DEFAULT_PORT") = defaultPort This will work, but now when I display the value in a later dialog it has " " around the value. So "16317" is displayed instead of 16317 Session.Property("DEFAULT_PORT") = chr(34)& defaultPort &chr(34) Is there some other way I can assign the new value to the property to use later in the install process? Thanks, Erik
... View more
Labels
- Labels:
-
InstallShield 2012 Spring
Latest posts by wilkinse
Subject | Views | Posted |
---|---|---|
1023 | Jan 04, 2017 01:49 PM | |
2366 | Dec 14, 2016 10:02 AM | |
692 | Feb 24, 2014 01:10 PM | |
692 | Feb 24, 2014 01:05 PM | |
2028 | Feb 21, 2014 08:18 AM | |
676 | Feb 21, 2014 08:04 AM | |
1590 | Feb 18, 2014 03:35 PM |
Activity Feed
- Posted Re: Can multiple versions of ISWiAutomation be registered on the same machine?? on InstallShield Forum. Jan 04, 2017 01:49 PM
- Posted Can multiple versions of ISWiAutomation be registered on the same machine?? on InstallShield Forum. Dec 14, 2016 10:02 AM
- Posted found it... on InstallShield Forum. Feb 24, 2014 01:10 PM
- Posted CustomAction in Binary table run twice on InstallShield Forum. Feb 24, 2014 01:05 PM
- Posted CustomAction stored in binary table gets run twice in a row on InstallShield Forum. Feb 21, 2014 08:18 AM
- Posted Re: Is it possible to use a custom action to set a property to a numeric value on InstallShield Forum. Feb 21, 2014 08:04 AM
- Posted Is it possible to use a custom action to set a property to a numeric value on InstallShield Forum. Feb 18, 2014 03:35 PM