Files are installed to a folder named "APPDIR" - 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!

dbeyer
Posts: 4
Joined: Wed Feb 14, 2007 4:40 pm

Files are installed to a folder named "APPDIR"

I am using version 3.7.

On a few clients the program files are installed to the literal folder "c:\APPDIR" instead of the correct target folder. It works fine on my test client, and on some of my real clients.

Any ideas on what may be different on these clients? Both running XP with current Windows updates.

More data:

If I run the MSI as the local administrator, it works as expected, that is, the files are installed to the defined application directory.

The problem occurs when I publish the MSI through a group policy and a non-admin user "adds" the program using add/remove programs.

On my test client I have a non-admin user "add" the program using a group policy and it works fine. The behaviour differs from client to client and I don't have any idea what the difference is.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

What is the default value you have set for "Application Folder" in the "Install Parameters" page?

Can you reproduce this issue with a small test project? If yes please send the AIP file so we can take a look.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dbeyer
Posts: 4
Joined: Wed Feb 14, 2007 4:40 pm

The install package is very simple

1. Copy two MDB files to a location
2. Create desktop shortcuts
3. Set an ODBC

The Application folder is "c:\[Manufacturer]\[ProductName]"

How should I send the aip file?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Note that is not a good practice to use hardcoded paths (like "C:\") for folder locations (on some machines "C:" drive might not exist). WindowsVolume property is resolved to the drive where the OS is installed (i.e "C:").

So my suggestion is to use "[WindowsVolume][Manufacturer]\[ProductName]" as default value for the "Application Folder".

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dbeyer
Posts: 4
Joined: Wed Feb 14, 2007 4:40 pm

I made the change to [WindowsVolume] but the msi still has the same behaviour - it works correctly on some computers, but not others.

It is interestig that when I am installing the msi using the group policy method, the computers that install to the correct directory run the package without any of the dialog boxes. The computers that install to the path "c:\APPDIR\..." run the dialogs and have the correct path in the dialog box, but that is not were the program is installed.

What sort of differences should I be looking for on the systems that don't work correctly?
dbeyer
Posts: 4
Joined: Wed Feb 14, 2007 4:40 pm

More data:

The problem only occurs if I publish the program using a group policy, and the user installs it from the add/remove programs applet (using the "add new programs" option). In this case the files are installed to the physical folder "c:\APPDIR".

If the user runs the MSI directly, then the files are installed to the proper folder as defined by the variable appdir.

In some cases the MSI works correctly from the group policy.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

It's hard to tell what is wrong. In order to investigate the problem please send a small test case (AIP file) reproducing this issue to support at advancedinstaller dot com. Also please sent the generated MSI file.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”