Solved

Need to change the Install Location of an InstallShield Program

Posted on 2010-11-16
13
1,097 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
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.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now