aolson
Posts: 7
Joined: Tue Nov 22, 2005 4:08 pm

Application tries to launch from C:\WINDOWS\system32

Hi everyone,

We've just upgraded to Advanced Installer 3.4 and are now seeing some strange behaviour. When launching our application at the end of the installation from the "Installation Complete" dialog, our application runs from C:\WINDOWS\system32 instead of APPDIR.

Is this a bug in the new version?

Thanks,

Aaron
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

Yes, this is a bug in the 3.4 version. Thank you for signaling this issue to us.

The bug has been resolved. The fix will be present in the 3.4.1. version, which will be released any time now.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
aolson
Posts: 7
Joined: Tue Nov 22, 2005 4:08 pm

Cheers Mihai. :)

In case 3.4.1 is not available in time (we ship very soon), is there someplace where I may download 3.3?

Thanks,

Aaron
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

The 3.4.1 version it getting ready to be released as we speak. However, if you need it, you can still download the 3.3.1 version from:

http://www.advancedinstaller.com/downlo ... dvinst.msi

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
bruce
Posts: 15
Joined: Tue Aug 09, 2005 2:55 am
Location: Perth, Western Australia
Contact: Website

Launching from incorrect directory

Hi,

Correct me if I'm wrong but this problem still appears to be present in 3.4.1 (just updated with the auto updater).

Also, it would be nice if the checkboxes on the final dialog of the installer could be checked/unchecked by clicking on the label (eg "Launch your application") as well as the checkbox itself like most checkboxes can.

Regards,

Bruce.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

The fix should work. Maybe there is a OS version problem? What OS version are you testing your packages on?

Thank you for your suggestion, we will add it to the list.

Best,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
aolson
Posts: 7
Joined: Tue Nov 22, 2005 4:08 pm

I noticed the same thing and rolled back to 3.3.1. This time, however, the package appeared to be running from C:\

We tested it on Windows XP Professional, SP2.

Thanks,

Aaron
bruce
Posts: 15
Joined: Tue Aug 09, 2005 2:55 am
Location: Perth, Western Australia
Contact: Website

I'm using XP SP2 also. I didn't check which directory it was running from, but it was definitely the wrong one as it broke some code in our app which uses relative paths.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

We are unable to reproduce this bug with the 3.4.1 version. I would suggest a Debug version of your application that will display the current directory. This can be easily obtained using the ::GetCurrentDirectory function.

This way you you can verify if the current directory is the one expected.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
bruce
Posts: 15
Joined: Tue Aug 09, 2005 2:55 am
Location: Perth, Western Australia
Contact: Website

Mihai,

I should have mentioned it is a Java app. I checked the current directory using

Code: Select all

new File(".").getAbsolutePath()
The current directory when launching the app using the tickbox in the installer is "C:\\."

When you run the app from the start menu shortcut after that, it works fine.

Bruce.
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

The problem you encountered appears when your application is launched from another directory but should not appear when it is launched at the end of the installation.

In order to solve this problem you must set the "user.dir" java property to the APPDIR directory.

You can set a Java System Property from Java>Virtual Machine>JVM Parameters dialog. Use the "New" button and enter the following:
- Property Name: user.dir
- Value: [APPDIR]
(or you can select any other folder you desire as working directory)
Mihai Udrea
Advenced Installer Team
bruce
Posts: 15
Joined: Tue Aug 09, 2005 2:55 am
Location: Perth, Western Australia
Contact: Website

That made some difference but it didn't solve the problem completely. It is a relatively low priority for us right now. I may e-mail you the .aip file at some point.

Bruce.

Return to “Common Problems”