Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1129
  • Last Modified:

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
0
ednetman
Asked:
ednetman
  • 7
  • 6
1 Solution
 
cyborgrdCommented:
you did changed this entry?

szDir=D:\sysedge

waht was you new entry?
0
 
ednetmanAuthor 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.
0
 
cyborgrdCommented:
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?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ednetmanAuthor 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.
0
 
cyborgrdCommented:
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
0
 
ednetmanAuthor Commented:
I tried that, but I get an error that various files were not registered or available, etc....
0
 
cyborgrdCommented:
on wich system you try to install the package? I'll check the MSI tomorrow, i have 00:11 now :)
0
 
ednetmanAuthor Commented:
I am installing on Server 2003 and Server 2008.  The answer file was created on Server 2003.
0
 
cyborgrdCommented:
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
0
 
ednetmanAuthor 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.
0
 
cyborgrdCommented:
No plan now. I would repackage the packge
0
 
ednetmanAuthor Commented:
That's what I was trying to avoid as the only thing I have the ability to do is a snapshot / compare type of install.  This won't cover the multiple OS types and hardware configs.  Once working I was going to adjust the answer file so that different hard drives could be used as some servers have D: as the DVD-ROM and would need to be installed to E: or F:.

We ended up having an "Install Party" where several of us stayed late one night, split up the list, ordered a pizza, and installed the software by hand.
0
 
ednetmanAuthor Commented:
No other solution worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now