I built a setup.exe for my application by using InstallScript MSI project Installshield DevStudio 9.0. There're several components in my project. After installing the application by running the setup.exe, I delete one of the file in the installed directory and run the setup.exe again, then I choose "repair" to fix what I've done. I get error 1706. Setup.exe is unable to locate a file [...pathA\myapp.msi]. I check the path and found the file is exactly there. I search the internet and realized that there's a "InstallSource" in windows registry of the application. It is in "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall". InstallSource has specified another path [...pathB]. If I create [pathB] and copy [myapp.msi] there. The repair will run without any problem.
Can anyone help me fix the problem? I don't want my customer get an error 1706 when they choose "repair". Thank you very much.
0 Comments   [ + ] Show comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


G'day Joanna:

Installsource is a key from where the MSI has been installed, however in your case I think you install your application from PATH-B rather than Path-A is that so ? In case if you ran from Path-B then the installer will search for path B to fix the repair issue , try this goto the registry key and change the value of installsource to path-A now you won't get this issue. Do let me know as to wht you did.

God Bless!
Answered 09/09/2005 by: wiseapp
Second Degree Green Belt

Please log in to comment
Hi Bhupesh,
Thank you.
Path-B was created in my system TEMP directory the first time I run the setup.exe on my machine. After the installation, the dirctory will be deleted automatically. If I delete one of my installed file and run setup.exe on my machine the second time, choose "repair", Path-A will be created in TEMP directory too and the msi file will be decompressed there. But I get a 1706 error saying that it cannot locate the msi file in Path-A. My setup.exe is a single executable. Path-A is not always Path-A. Every time I run setup.exe, a temporary directory will be created in my system TEMP directory and removed after setup.exe finished.
Answered 09/12/2005 by: joanna
Yellow Belt

Please log in to comment