XP SP2 installer - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jtinstall
Posts: 2
Joined: Mon Aug 23, 2010 2:19 pm

XP SP2 installer

I was browsing the web for a free MSI packaging solution and AI is simple and easy to use for our non-best programmers compared to the more complicated WiX approach

We develop an application in VB5 plus some COM objects. The old PDW present some problems with newer Win OSs (Vista, 7)

I developed the installer and it works OK in Vista and Win7. On theses OSs we are deploying into c:\users\public\documents\<app_name> in order to avoid folder's virtualization so all users will share the same database. I know this is not the preferred MS approach as I should install into C:\Program Files\<app_name> and ACL's the app folder but as far as I know this is not allowed in the free version.
The AI setup is:
per-machine only (fails if users is not administrator) because I need to register COM objects so a regular user can't do that.
Database changes can be seen by all users (admin / regular user)

The problem arises in XP. I install as admin and the application works. If I login as a regular user some components are not registered and the application fails. If as a regular user I choose “run as administrator” by right-clicking the application works. Destination folder is c:\docuements and settings\all users\<app_name>
Am I missing something? Is there anything that can be done to correct this behavior?

Thanks in advance
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: XP SP2 installer

Hello,

Your application needs elevated privileges to run. Please verify the locations where your application is making changes on the local machine.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jtinstall
Posts: 2
Joined: Mon Aug 23, 2010 2:19 pm

Re: XP SP2 installer

Hi Mihai,

Thanks for your quick answer!!!
I forgot to mention that the entire app is within the <app-name> folder including all the COM controls (dlls on the root flder and OCX inside a controls folder).
The application uses dao350.dll and dao2535.tlb that have been cause of failure before.
I understand that is something related to admin privileges but can not understand why it works on vista and it doesn’t in XP
To my undertandisng the application shouldn't be doing changes outside the <app_name> folder

Thanks for your support,

Andy
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: XP SP2 installer

Hi Andy,

In Win Vista you have UAC ( User Account Control ) which prompts and elevates your application to admin rights.
This function is not available in Win XP thus you can either choose to run the application as admin ( right click -> run as admin ) or leave it with normal user rights, in which case it fails.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”