Installed .exe won't launch from installation directory? - Advanced Installer Community
CXM
Posts: 1
Joined: Fri Sep 27, 2013 9:26 pm

Installed .exe won't launch from installation directory?

Using Advanced Installer, I have created and run a simple installer that contains a single .exe.

This .exe started as an executable jar (w/ splashscreen) and was built into a Windows .exe using Launch4j.

Once the application is installed (in C:\Program Files (x86)...), I can't execute it from the installation directory. However, if I copy the .exe to anywhere else, Desktop, or any other directories created by other installers, the .exe will start perfectly.

This appears to be a folder or application permissions issue. Comparing the permissions between this folder and the one created by Advanced Installer, the permissions and settings are identical.

The ONLY difference I see, between the installed .exe and the same .exe copied to another folder, is that the "Edit Permissions" button has an admin shield on it (one originally installed by AI).

Is there a setting in Advanced Installer that will allow my .exe to run once installed? I am unable to make any changes in the OS that enable this file to run in the directory created by AI, but I am able to copy and run it anywhere else.

Obviously the solution needs to be made in AI because I can't require end users to make security changes.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installed .exe won't launch from installation directory?

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to launch an application at the end of the installation you can go in the Dialogs page, select the "ExitDialog" dialog and use the "Launch application at the end of installation" option from the "Finish Actions" tab.

If your file needs administrator permissions, you can go in the custom action page, create a "Launch file" custom action "without sequence" that launches your .exe and check the "Run as administrator" option. Then, you can go on the "ExitDialog" dialog, select the finish button, add a new "published event" of type "Execute custom action" and choose your "Launch file" custom action from the "Argument" combobox.

Otherwise, if you want to set permissions on the application folder you can go in the Files and Folders page, right-click on the "Application Folder" and select "Properties", the go in the "Permissions" tab and add new permissions like in the following example:
  • Domain: (empty)
    Username: Everyone
    Permissions: Full Control
Let us know if this helped, otherwise give us more details about your scenario.

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

Return to “Common Problems”