wollka
Posts: 43
Joined: Sun Oct 22, 2006 6:30 pm

X32x64 Package – Run x32 App after Install fails on x32 OS

Hi,
Professional edition Project.
Mixed x32/x34 package Type.
Under Dialogs > Exit Dialog select some x32 .exe (from 32-bit Feature!) to “Launch Application at the end of installation”.

Now when I install this software under Windows x64 it does work (it starts my x32 EXE).
But if I run this package under x32 OS, it does not start anything at the end.

Sample project is attached.
Attachments
apw102.aip
Sample Project
(20.22 KiB) Downloaded 465 times
wollka
Posts: 43
Joined: Sun Oct 22, 2006 6:30 pm

Re: X32x64 Package – Run x32 App after Install fails on x32

Additional information:
The reason is that it tries to launch it from \32-bit subdirectory, but it is not created under x32 OS.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: X32x64 Package – Run x32 App after Install fails on x32

Hello,

First of all I apologize for my delayed answer.

In order to achieve what you want you can set the "Application" field, from "ExitDialog -> Launch Application" section, like this:

Code: Select all

[APPDIR]YourApp.exe
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wollka
Posts: 43
Joined: Sun Oct 22, 2006 6:30 pm

Re: X32x64 Package – Run x32 App after Install fails on x32

Thank you for reply.
Yes, now it does work under x32 OS. But when I run this new package under x64 OS it does not. Because here it attempts to launch it from INSTALLDIR, not from INSTALLDIR\32-bit\ (where 32 bit files are placed under x64 OS).
But I want it to start this 32-bit application on both x32 and x64 systems.
wollka
Posts: 43
Joined: Sun Oct 22, 2006 6:30 pm

Re: X32x64 Package – Run x32 App after Install fails on x32

It would be great to have an option to specify different files to launch for x32 and x64 OS.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: X32x64 Package – Run x32 App after Install fails on x32

Hello,

In order to achieve this you can set an installer property with your YourApp.exe path, depending on target operating system version. Then, you can use the above property in the "Launch application at the end of installation" section. Here are the steps to proceed:
- go to "Install Parameters" page and add a new property like this:
  • Name: MY_APP_PATH
    Value: Your value
- go to "Dialogs" page -> "ExitDialog" and set the "Application" field, from "Launch application at the end of installation" section, like this:

Code: Select all

[MY_APP_PATH]
- go to "Custom Actions" page and add two "Set installer property" custom actions with sequence, added after "Wizard Dialogs Stage -> Paths Resolution" action group, like this:
  • Property: MY_APP_PATH
    Value: [APPDIR]YourApp.exe
    Condition: NOT VersionNT64

    Property: MY_APP_PATH
    Value: [AI_Bin32_Dir]YourApp.exe
    Condition: VersionNT64
- build and run your project

If you have any question let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wollka
Posts: 43
Joined: Sun Oct 22, 2006 6:30 pm

Thank you!

This solution works great! Thanks a lot for your help!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: X32x64 Package – Run x32 App after Install fails on x32

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”