Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need to change the Install Location of an InstallShield Program

Posted on 2010-11-16
13
Medium Priority
?
1,114 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
0
Comment
Question by:ednetman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 3

Expert Comment

by:cyborgrd
ID: 34147306
you did changed this entry?

szDir=D:\sysedge

waht was you new entry?
0
 
LVL 7

Author Comment

by:ednetman
ID: 34148060
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
 
LVL 3

Expert Comment

by:cyborgrd
ID: 34149262
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 7

Author Comment

by:ednetman
ID: 34150086
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
 
LVL 3

Expert Comment

by:cyborgrd
ID: 34150213
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
 
LVL 7

Author Comment

by:ednetman
ID: 34150271
I tried that, but I get an error that various files were not registered or available, etc....
0
 
LVL 3

Expert Comment

by:cyborgrd
ID: 34150288
on wich system you try to install the package? I'll check the MSI tomorrow, i have 00:11 now :)
0
 
LVL 7

Author Comment

by:ednetman
ID: 34150832
I am installing on Server 2003 and Server 2008.  The answer file was created on Server 2003.
0
 
LVL 3

Expert Comment

by:cyborgrd
ID: 34152991
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
 
LVL 7

Author Comment

by:ednetman
ID: 34157599
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
 
LVL 3

Expert Comment

by:cyborgrd
ID: 34158681
No plan now. I would repackage the packge
0
 
LVL 7

Accepted Solution

by:
ednetman earned 0 total points
ID: 34291739
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
 
LVL 7

Author Closing Comment

by:ednetman
ID: 34328483
No other solution worked.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question