MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Double click on file launching installer forLimited Users.

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!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Double click on file launching installer forLimited Users.

Hi,

Usually an on-demand installation (triggered by launching an associated file) is caused by the absence of resources installed by the package. Does the package install any resources in per-user locations? If so, they will be installed only for the user which runs the package. For other user accounts Windows Installer will run the on-demand install to reinstall the resources.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Re: Double click on file launching installer forLimited Users.

The only files being installed are located in the Application Folder and Application Shortcuts Folder, in this case [ProgramFilesFolder][Manufacturer]\[ProductName] and [ProgramMenuFolder][ProductName] respectively.

However, there is a registry key being installed to HKEY_CURRENT_USER/Software, and what you say makes me wonder if that might be causing it. The key is mirrored to HKEY_LOCAL_MACHINE so I will try removing the current user version and see if that makes a difference.

Thanks for the input!

Update: Removing the Current User key seems to have worked, thanks for pointing me in the right direction.

Return to “Common Problems”