Installed application does not launch in Windows 7 SP1 - 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!

venkateshn
Posts: 5
Joined: Sun Oct 02, 2011 6:06 am

Installed application does not launch in Windows 7 SP1

Hi there,

I used Advanced Installer version 8.5 to create an installer for a Java 1.5 and Swing based application. Using the installer, Installation of the application is successful on both Windows 7 and Windows 7 SP1 machines. I am able to successfully launch the application on a Windows 7 machine. But launching of the application fails on a Windows 7 SP1 machine. No errors are displayed and nothing happens. Could you please let me know how to enable displaying of debugging messages when the application launching script (i.e. the one created by the installer) is executed? I am interested in knowing what the launch script tries to do and why it is not able to launch the application. I tried to use the java command to launch the application and it was successfully launched on the WIndows 7 SP1 machine.

Thank you.

Regards,
Venkatesh
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installed application does not launch in Windows 7 SP1

Hi Venkatesh,

I'm afraid that our Java Launcher doesn't create a log. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it? Also, what is the exact command line you are using to launch your application manually?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
venkateshn
Posts: 5
Joined: Sun Oct 02, 2011 6:06 am

Re: Installed application does not launch in Windows 7 SP1

Hi Cosmin,

Apologies for the delay in replying to you. Thank you very much for offering me help. An exe created for 32 bit machine works on a Windows 7 64 bit machine but not on Windows 7 SP1 64 bit machine. I managed to fix the issue by choosing the "Mixed 32/64 bit matching the platform" package type install parameter instead of 32 bit. Also, I selected the "Any CPU" platform option in Java Products section (it was 32 bit previously). These settings along with some changes to the Organization section (i.e. placing appropriate files like exe and shortcuts under 32-bit and 64-bit features) resulted in installation of only 64 bit related files on a Windows 7 machine.

There is one problem remaining to be fixed. When I install the application using the installer on WIndows 7, it finally tries to launch the application and fails. It opens the "C:\Windows\SysWOW64" folder in a Windows explorer window. As I mentioned above, the application gets launched using the launch script (the one related to 64 bit machines) but the installer does not seem to use the launch script. It appears that it still tries to use the previous launch script (the one for 32 bit machines which no longer exists). Could you please let me know the setting that I need to change in the aip file in order to make the installer use the correct launch script?

Thank you.

Regards,
Venkatesh
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installed application does not launch in Windows 7 SP1

Hi Venkatesh,

Instead of using a file reference (something line [#myFile.ext]), the launch application action can use a folder path with the actual file name. For example:

Code: Select all

[APPDIR]myFile.exe
If you can't figure out how to modify your project, please send us the .AIP (project) file to support at advancedinstaller dot com and we will take a look.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
venkateshn
Posts: 5
Joined: Sun Oct 02, 2011 6:06 am

Re: Installed application does not launch in Windows 7 SP1

Hi Cosmin,

Thank you for your reply. I forgot to mention in my last post that we need the launch application action to use our 32-bit launch script on 32-bit machines and the 64-bit launch script on 64-bit machines. So it appears that I need to use a condition in the value of Application field under "Launch application at the end of installation" check box in the Dialogs section. I think I need to use the VersionNT64 OS property. Could you please let me know if a condition can be specified in the value of the Application field? Also, if you can provide some examples on how to do this, it will be very helpful. If you have any suggestions on on a better approach to achieve this conditional behaviour, please let me know.

Thank you.

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

Re: Installed application does not launch in Windows 7 SP1

Hi Venkatesh,

Instead of using the Finish Actions tab functionality, you can try to use the approach from the second section of this article to create two custom actions for each OS architecture. In this you can easily condition them using the WindowsNT property.

You can also use the x64 version of the custom action:
http://www.advancedinstaller.com/user-g ... h-file-x64
http://www.advancedinstaller.com/user-g ... aunch-file

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
venkateshn
Posts: 5
Joined: Sun Oct 02, 2011 6:06 am

Re: Installed application does not launch in Windows 7 SP1

Hi Mihai,

Sorry for the delay in getting back to you. Thank you for your suggestions. We want to let the user decide if the installed application should be launched. So I referred to the last paragraph of the second section contained in the web page whose URL is http://www.advancedinstaller.com/user-g ... ation.html. I have mentioned it below to be clear:
If you want to let the user decide whether or not the custom action should run (the file, folder or URL is launched), you can use a custom checkbox:

* create a checkbox control on "ExitDialog"
* in the Properties section set the "Property Name" field to CHECK
* in the "Text" field set the text of the checkbox (for example "Launch the application")
* modify the "DoAction" control event to use the property of the checkbox:

DoAction myapp.exe AI_INSTALL AND CHECK

This way, the custom action will only run if the checkbox is selected. If you want the checkbox to be selected by default, you can set any value in the "Default Value" field.
In order to introduce DoAction control event related settings, I carried out the following steps:

1. Selected the new check box control in the Dialogs > First Time Install > ExitDialog section.
2. Selected the Published Events tab and clicked on the "New" button
3. Selected "DoAction" as the name of the new control event
4. Tried to select an application launch script from the Argument drop down list box but found it to be empty

Could you please let me know why the Argument list is empty and how to resolve this issue?

My understanding is that I need not carry out the steps listed in the first two paragraphs of section 2. I have mentioned below the steps (i.e. ones which need not be carried out as per my understanding):

Steps in first paragraph:
* go to the Custom Actions page
* use the "Show Standard Action" button to show the "Before Finalization" -> "InstallFinalize" standard action
* under it create a "Launch file or open URL" custom action
* set the "Command Line" field to the path of the file or folder you want to open (you can also set an URL)
* set the "Expression" field in the "Execution Condition" section to (Not Installed)
Steps in second paragraph:
* make sure you are using at least an Enterprise or Architect project (you can change the project type using the Project -> Options menu)
* go to "Dialogs" page and select "ExitDialog"
* select the Finish Actions tab
* enable launch application feature for the file you want to launch
* make sure that the Checked by default option is set
* select the launch application text control and set the "Visible" flag to False in its Properties pane
* do the same for the checkbox control
Please correct me if I am wrong.

Thank you.

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

Re: Installed application does not launch in Windows 7 SP1

Hi Venkatesh,

You are correct, there seems to be a mistake in the user guide article. Thank you for bringing it to our attention, we will correct it for a future release.

If you want to let the user decide whether or not the custom action should run (the file, folder or URL is launched), you can use a custom checkbox:
  • create a checkbox control on "ExitDialog"
  • in the Properties section set the "Property Name" field to CHECK
  • in the "Text" field set the text of the checkbox (for example "Launch the application")
  • in the Custom Actions page, add "Launch file or open URL" as an UI Custom Action
  • add a "DoAction" published event on the Finish button that calls the "Launch file or open URL" UI custom action
  • modify the "DoAction" published event to use the property of the checkbox:

    Code: Select all

    DoAction   myapp.exe   AI_INSTALL AND CHECK
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
venkateshn
Posts: 5
Joined: Sun Oct 02, 2011 6:06 am

Re: Installed application does not launch in Windows 7 SP1

Hi Mihai,

I was able to resolve the issue using your inputs. Thank you very much for your important inputs!

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

Re: Installed application does not launch in Windows 7 SP1

You are welcome Venkatesh, glad to assist.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”