Permission Upon Launching Application - 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!

maro
Posts: 12
Joined: Wed Mar 31, 2010 8:36 am

Permission Upon Launching Application

Hi,

When we built our stand alone installer and tested it on one our machines, we were able to install properly. The last dialog of the installation contains a checkbox with a label "Launch Application".

We noticed that when we finish an installation with this checkbox checked, our application launches and when we launch our own media player (that is included in the installer) from our application, it does not work properly. But whenever we terminate the application and launch it manually, it appears to be working fine.

My question is, when we allow advancedinstaller to launch our application upon finishing the installation, which windows user account is it run from? what permissions are given to the user?

Best Regards,

Maro
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Permission Upon Launching Application

Hi Maro,

I do not think this issue is related to the permissions. The application will be started under the same user that started the installer. Elevation will also be inherited from the installer. So if the installer has been started with admin privileges, so will your app.

Is your application a Java app? If so, try going to Java page->Your product->Settings tab. Tick the "Set product folder as current" checkbox and try again to see if the issue still manifests itself.

If your app is not a Java app, try determining the current directory with which your application is launched. That might be an issue. If using C/C++ you can try using _getcwd.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”