I’m evaluating the trial version, and I’m having trouble getting past a way to set the volume for our AppDir.
Our software is typically installed on the D drive, but it could be on another drive.
If the registry is already set with our install path (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OurApp), then of course I’d want to continue to install there. The reg value would be of the form, “D:\OurInstallFolder\”. (I see where I could also search for the folder “OurInstallFolder” on all fixed drives.) I'd like to not give an option to change the appdir in this case.
If the registry is not set (= first time install), then I’d like to launch the Installation Folder dialog box defaulted to “D:\OurInstallFolder\” if the D drive exists as fixed drive, otherwise to the “[WindowsVolume]:\OurInstallFolder\”.
So, it seems a bit complex … If reg value, then reg value with no dialog for path, else if D drive exists, then dialog defaulted to D plus foldername else dialog defaulted to C plus foldername.
How could I do this?
FOLLOW US
Get the latest news in Application Packaging