Hi there,
I have created an installer that installs a simple application with a single file association (*.ptg). I have ensured that the Feature the association is installed with is installed by default, is not Advertised, and is always installed. The application doesn't need to do any runtime installation, it's all installed up-front with no services, registered DLLs or anything required. The Install Parameters indicate that the application Installation Type is 'Per-machine if user is administrator, per-user otherwise'. If I run the installer as an Admin user and install the application, the file association is failing when I run the same machine as a limited user and double click a file saved by the app.
For example, I install as Admin User then log out and log in to a Limited User. I now open the application and it runs fine, I create a file and save it then quit the application. I can see the icon for the association clearly, so it has associated the .ptg file with the icon I allocated to it. But if I double click the file (it's in my Shared Documents folder, it does this from other locations too) I see an installer window and the installer runs. As this is for an OEM machine, the installer won't be on the machine when a limited account user double clicks af file, so this is a problem (I get an error trying to locate the installer if it is not there).
The application only has one Feature, with the settings all set to install by default, not advertise and not install 'on demand' as noted above, so I am not sure why the Limited User account is having to run an installer at the point of double click. Does anyone have any idea what I might have missed that could be causing this problem?
The application has been installed and uninstalled a few times on the machine if that may be important, though each time it should have deleted all of its settings (it doesn't write anything that isn't written by the installer and the installer writes 1 Local Machine registry key in addition to the file association). I did note that even after uninstalling, reinstalling, then deleting the installer the Limited User account would sometimes run an installer when double clicking, which indicates to me that the installation system has found an installer somewhere, but I do know that in most cases there will be an error generated when on double click it is unable to find an installer.
Any help would be really appreciated, thanks!
FOLLOW US
Get the latest news in Application Packaging