Avatar of ednetman
ednetman
Flag for United States of America asked on

Need to change the Install Location of an InstallShield Program

I have an application that was created in InstallShiled, I need to run a silent install to several hundred machines.  I created an answer file, but sometime the /r switch doesn't capture the directory change, other times it does.  When it does capture the change, the setup will not run with that answer file (error code: -3).  If I delete the section where the change is then it will install, but to the default path which is not acceptable.

I downloaded AdminStudio 2011 and can open the executable, but when i change the INSTALLDIR under the general tab, and save as a different file name, the installer still puts in in the wrong place.

I need help either changing the executable or editing the .iss file so that the silent unattended install will work.  I'll up the points if you can help me add something in as well, but we will get to that after the first part is solved.  

Thanks!

Ed

My iss file as recorded by the setup
----------------------------------------------

[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-DlgOrder]
Dlg0={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-0
Count=16
Dlg1={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdWelcome-0
Dlg2={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdLicense2-0
Dlg3={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdAskDestPath-0
Dlg4={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-1
Dlg5={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-0
Dlg6={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-2
Dlg7={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit3-0
Dlg8={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-1
Dlg9={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit3-1
Dlg10={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit1-0
Dlg11={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-2
Dlg12={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-3
Dlg13={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-3
Dlg14={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-4
Dlg15={5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdFinish-0
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-0]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdWelcome-0]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdLicense2-0]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdAskDestPath-0]
szDir=D:\sysedge
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-1]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-0]
Result=0
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-2]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit3-0]
szEdit1=Server
szEdit2=IT Engineers
szEdit3=Server_Location
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-1]
Result=0
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit3-1]
szEdit1=Name
szEdit2=Name_2
szEdit3=SNMP_Trap1
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit1-0]
szEdit1=1691
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-2]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-AskYesNo-3]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-3]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-MessageBox-4]
Result=1
[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdFinish-0]
Result=1
bOpt1=0
bOpt2=0
Installation

Avatar of undefined
Last Comment
ednetman

8/22/2022 - Mon
Oleg Meier

you did changed this entry?

szDir=D:\sysedge

waht was you new entry?
ednetman

ASKER
The default folder was C:\sysedge but I changed the directory during a recoded install to D:\sysedge.  When I run the install back with this file, it errors with (-3) but if I delete the section:

[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdAskDestPath-0]
szDir=D:\sysedge
Result=1

Then it will silently install to the C:\ without any issues.  Just need to get that C:\ to be a D:
 either via .iss or a change to the executable.
Oleg Meier

some installes cannot be installed silently on other device than c:\ may it is the case. i can just analyse this if i can get the install files. Wich software is it?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ednetman

ASKER
I found a copy of the same setup file on the web:
https://rcpt.yousendit.com/990623479/38c41ff979fc4d65923b9abcd7056358

Take a quick look and see if you can help.

While looking, see if you can figure out how I can add a line to the config file that gets written:

[{5AD4773B-84E0-479D-8519-E11C8EAFE85B}-SdShowDlgEdit3-1]
szEdit1=Name
szEdit2=Name_2
szEdit3=SNMP_Trap1
Result=1


I would like to add an SNMP_Trap2.
Oleg Meier

nice that is a MSI driven by setup wrapper. if you launch the installer look in you %TEMP% folder you can find there a folder like _is8FF1, copy the content to other location an abort the setup. Now you can install first the ISScript11.Msi by commandline (msiexec /i ISScript11.Msi /qn /l*v c:\isscript11.log ) and the the CA eHealth SystemEDGE.msi. For the CA eHealth SystemEDGE.msi you need to set the poroperty ISSETUPDRIVEN=1 additional
ednetman

ASKER
I tried that, but I get an error that various files were not registered or available, etc....
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Oleg Meier

on wich system you try to install the package? I'll check the MSI tomorrow, i have 00:11 now :)
ednetman

ASKER
I am installing on Server 2003 and Server 2008.  The answer file was created on Server 2003.
Oleg Meier

i try to install it on win xp. Few errors no chance to install. Try to install with the parameter /v
after this parameter you can use properties (no space between the /v and the property) for the msi like

setup.exe /v/qn
setup.exe /vINSTALLDIR=D:\blabla
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ednetman

ASKER
I tried that, but then it either won't accept the answer file without the path in it, or it prompts for information.  No way to get those other fields in there.
Oleg Meier

No plan now. I would repackage the packge
ASKER CERTIFIED SOLUTION
ednetman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ednetman

ASKER
No other solution worked.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.