Gweniviere
Posts: 3
Joined: Tue Apr 03, 2012 3:10 am

Install as Admin, reinstall as user...

Hi, I'm using AdvancedInstaller 9.4 Enterprise and am having what I hope is a simple problem. In an AD environment a user with administrative privileges is installing our product. When the non-admin privileged user of the desktop logs in the software always wants to re-install.

The event viewer info I am getting is...

Detection of product '{5CD3AA3D-07A4-4BB1-8917-B66028526802}', feature 'MainFeature', component '{2E4F0656-C80E-4E30-B640-38296BFDF40A}' failed.
The resource 'C:\Documents and Settings\Gwen\Application Data\My Company\My Product\' does not exist.

The issue is that the path listed contains the admin user (Gwen) that installed the software and the user _should_ be QA1.

If you cancel the re-installation the software will continue to load and operate as expected. If you allow the re-installation to complete many of the registry settings that are set during initial set up are left blank.

Can anyone shed some light on where this might be coming from?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install as Admin, reinstall as user...

Hi

First you must decide if every user that accesses the application must have its own resources of the application or if all the users work with the same resources.

If they all must work with the same resources, then you must put the resources in the "Common Application Data" folder from the Files and Folders page. This folder is resolving to ProgramData folder for Windows 7 and to All Users for Windows XP.

Else, if every user must have its own resources, you must put the resources in the "Application Data" folder. Here is an example with registry in the "Adding HKCU entries to registry for all users" thread. You must follow the steps for your resources.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”