English 中文(简体)
A InstallShield INSTALLDIR and TARGETDIR issue
原标题:

Now I have a problem about InstallShield INSTALLDIR and TARGETDIR.

for example:

1- I make a project named "MyTestprogram"

2- I install this program into my computer which location is D:MyCompanyMyTestprogram

3- Then I build a new version of this program and upgrade it.

but when upgrade the INSTALLDIR and TARGETDIR is default path C:program filesmy company nameMy product name not the path which i have installed (D:MyCompanyMyTestprogram)

can you help me ?

问题回答

Are you making installscript or msi setup?

Make sure that under General Information/Product properties/INSTALLDIR(TARGETDIR) you have same values as in regular setup and in patch.

But, this only works if user doesn t change install path when installing application If he does, your application is installed in for example "c: estMyTestprogram", while patch will install to D:MyCompanyMyTestprogram

If using installscript, add Helper feature, which will be first in feature list and add a function to OnInstalled which will check in registry where your application is installed (SOFTWAREMicrosoftWindowsCurrentVersionUninstallYourApplicationGUID).

If using msi, you can add property let s call it "INST_DIR" and tell him(wizard) to search registry stated above. It will store Install location of your application in this property which can be stated in feature as destination.

Cheers...

You need to save your INSTALLDIR into the ARP (add remove programs) record. Check out ARPINSTALLLOCATION.





相关问题
Reusing InstallShield prerequisites

I m looking to have a release layout with multiple installers but with a single source for prerequisites, in the following structure: Product1setup.exe Product2setup.exe Product3setup.exe ...

DuplicateFile table with GAC

My installer has grown very large b/c of file duplication. Some of our DLL s are in two places (local and GAC or local and system32 folders). How can I use the DuplicateFile table or other ...

Error 1926 on setup created by InstallShield 2008

I m compiling the setup with InstallShield 2008 - Professional and I have a problem that occurred only in some Win 7 Ultimate systems. My setup is suppose (among others) to copy files to the "Program ...

A InstallShield INSTALLDIR and TARGETDIR issue

Now I have a problem about InstallShield INSTALLDIR and TARGETDIR. for example: 1- I make a project named "MyTestprogram" 2- I install this program into my computer which location is D:MyCompany...

Why isn t SQL Text Substitution working in InstallShield

I m trying to run some dynamic SQL in an installscript project. In the UI portion of the script I have the following code: TextSubSetValue("<INSERTSITES>", message, TRUE); message = ""; ...

how to open a web page on click of button in InstallShield?

HI, I want to open a web page on click of a button in any dialog that is created in InstallShield. I think it can be created by using custom actions but as I am new in this tool do not find the exact ...

Silent install installer with prerequisites [closed]

Is there a way to install silently (/s) an InstallShield (non-MSI) installer that requires its own prerequisites? In my case the prerequisite is Microsoft Visual C++ 2008 Redistributable. Its UI ...

Issue with InstalShield

I Use Installsheild 2009 To Deployment VS2005 Project with Sql express 2005 DB. I put my exe and DB files. And I typed /qn SQLAUTOSTART=1 ADDLOCAL=ALL DISABLENETWORKPROTOCOLS=1 in command line to ...

热门标签