Getting Install Directory of previous version
Hi Everyone!
I just recently started getting into deploying, right now I'm using VS Studio Deployment Project and after that Orca for customizing. I tried to read over Platfrom SDK help and your messageboard as well but couldn't find the solution to the following problem:
In full UI, on the form where install directory can be set, I'd like to set the default location to the directory where previous version was installed. As I understood from the SDK help, this can't be done with an executable custom action, but I don't know much about Scripting myself...
Anybody know of any way this could be somehow asked from previous install and set in current?
Thank you,
Chris
I just recently started getting into deploying, right now I'm using VS Studio Deployment Project and after that Orca for customizing. I tried to read over Platfrom SDK help and your messageboard as well but couldn't find the solution to the following problem:
In full UI, on the form where install directory can be set, I'd like to set the default location to the directory where previous version was installed. As I understood from the SDK help, this can't be done with an executable custom action, but I don't know much about Scripting myself...
Anybody know of any way this could be somehow asked from previous install and set in current?
Thank you,
Chris
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
brenthunter2005
18 years ago
I'd look into the use of the AppSearch action. If the old applications install folder is stored in the registry, you could read that and populate a property with the value.
For example, some applications store this value in the HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\[AppId]\InstallLocation registry key.
Others may store a value in the HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\[ExecutableName.exe] etc etc etc.
For example, some applications store this value in the HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\[AppId]\InstallLocation registry key.
Others may store a value in the HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\[ExecutableName.exe] etc etc etc.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.