We help IT Professionals succeed at work.

Need to change the Install Location of an InstallShield Program

ednetman
ednetman asked
on
1,202 Views
Last Modified: 2012-05-10
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
Comment
Watch Question

Oleg MeierPackaging Administrator
CERTIFIED EXPERT

Commented:
you did changed this entry?

szDir=D:\sysedge

waht was you new entry?

Author

Commented:
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 MeierPackaging Administrator
CERTIFIED EXPERT

Commented:
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?

Author

Commented:
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 MeierPackaging Administrator
CERTIFIED EXPERT

Commented:
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

Author

Commented:
I tried that, but I get an error that various files were not registered or available, etc....
Oleg MeierPackaging Administrator
CERTIFIED EXPERT

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

Author

Commented:
I am installing on Server 2003 and Server 2008.  The answer file was created on Server 2003.
Oleg MeierPackaging Administrator
CERTIFIED EXPERT

Commented:
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

Author

Commented:
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 MeierPackaging Administrator
CERTIFIED EXPERT

Commented:
No plan now. I would repackage the packge
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
No other solution worked.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.