Michel de Wit
Posts: 3
Joined: Wed Jan 23, 2013 5:23 pm

Empty shortcut items for command line install of .exe

Hello,

We created a setup bootstrapper exe. If it is installed by doubleclicking on it or uninstalled e.g. by the Control Panel it works fine. However, if we start this exe from the command line, we encounter 3 problems, of which the 3rd is our main problem:

1. If we use the default syntax : C:\AppSetup.exe /x // /qb we get the following message : "The file name, volume name or directory syntax is incorrect". I read on the forum that this would be due to the Enhanced User Interface option, but we chose "Never"for this option and it still doesn't work.
If we add any exe command line parameter before the /x, the command works, e.g. : C:\AppSetup.exe /exebasicui /x // /qb

2. When uninstalling using C:\AppSetup.exe /exebasicui /x // /qb we still get the dialog behind the small progress dialogs, even if /qb and /exebasicui should prevent that, I thought.

3. The following is the biggest problem : Once the application is uninstalled one time by using C:\AppSetup.exe /exebasicui /x // /qb, the shortcut icons are empty after the next command line install (using : C:\AppSetup.exe APPDIR=C:\AppPath ALLUSERS=1 /qb)
The application seems to install fine at the location given by AppPath, but the %SystemRoot%\Installer directory does not have the directory with the shortcuts in it. At first the shortcuts show fine, but by the end of the installation, they turn empty.
This happens only, if the commandline install is ran after the command line UNinstall has ran. As soon as an install or uninstall through the user interface has been executed (by clikking on the exe file, or uninstalling from the control panel), the command line install works fine again, creating the%SystemRoot%\Installer
directory and its shortcut files.

The shortcuts are not advertised.

Can anyone help ?

Regards,
Michel
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Empty shortcut items for command line install of .exe

Hello Michel and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
1. If we use the default syntax : C:\AppSetup.exe /x // /qb we get the following message : "The file name, volume name or directory syntax is incorrect". I read on the forum that this would be due to the Enhanced User Interface option, but we chose "Never"for this option and it still doesn't work.
Indeed this is an Advanced Installer issue. We are aware of it and a fix will be included in a future version of Advanced Installer. Also, I'm afraid I cannot reproduce the behavior when the "Enhanced User Interface" feature is disabled. Can you attach a sample which reproduces the behavior? Also, can you give us a detailed step by step test case scenario so we can try to reproduce and investigate this?
2. When uninstalling using C:\AppSetup.exe /exebasicui /x // /qb we still get the dialog behind the small progress dialogs, even if /qb and /exebasicui should prevent that, I thought.
Please keep in mind this is the normal behavior when the "Enhanced User Interface" is activated. In order to achieve what you want you can use a command line like this:

Code: Select all

msiexec.exe /x {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} /qb
where {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} is your package product code.
3. The following is the biggest problem : Once the application is uninstalled one time by using C:\AppSetup.exe /exebasicui /x // /qb, the shortcut icons are empty after the next command line install (using : C:\AppSetup.exe APPDIR=C:\AppPath ALLUSERS=1 /qb)
The application seems to install fine at the location given by AppPath, but the %SystemRoot%\Installer directory does not have the directory with the shortcuts in it. At first the shortcuts show fine, but by the end of the installation, they turn empty.
This happens only, if the commandline install is ran after the command line UNinstall has ran. As soon as an install or uninstall through the user interface has been executed (by clikking on the exe file, or uninstalling from the control panel), the command line install works fine again, creating the%SystemRoot%\Installer
directory and its shortcut files.
I'm afraid I cannot reproduce the behavior. Can you reproduce the behavior on multiple clean machines? If so, can you give us a detailed step by step test case scenario so we can try to reproduce and investigate the behavior?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Michel de Wit
Posts: 3
Joined: Wed Jan 23, 2013 5:23 pm

Re: Empty shortcut items for command line install of .exe

Hi Daniel,

Thanks for your help.

1. I'll try to create a simple script that reproduces this.

2. The "Enhanced User Interface" is not activated, so this should not be normal behavior.

3. We can reproduce this on multiple machines.
The steps are:
1. Install the application using: C:\AppSetup.exe APPDIR=C:\AppPath ALLUSERS=1 /qb
The application seems to be correctly installed, the shortcuts are there, including the icons.
2. Uninstall the application using: C:\AppSetup.exe /exebasicui /x // /qb
The application gets uninstalled seemingly OK.
3. Install the application again using: C:\AppSetup.exe APPDIR=C:\AppPath ALLUSERS=1 /qb
The application seems to be correctly installed. For a while during the installation, the shortcuts are shown with the correct icons. Before the installation ends, the icons become empty.
If you look in %SystemRoot%\Installer, the directory of the icons is not there.

This can only be resolved by either uninstalling the application not using the command line (double clicking the .exe or using Uninstall from the Control Panel), or by installing the application by double clicking the exe.

Regards,
Michel
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Empty shortcut items for command line install of .exe

Hello Michel,
2. The "Enhanced User Interface" is not activated, so this should not be normal behavior.
I cannot reproduce this behavior when the Enhanced UI is disabled. Can you make sure that the Enhanced UI is set to "Never" option, from "Themes -> Settings" tab, and then test again the related scenario?
3. We can reproduce this on multiple machines.
The steps are:
1. Install the application using: C:\AppSetup.exe APPDIR=C:\AppPath ALLUSERS=1 /qb
The application seems to be correctly installed, the shortcuts are there, including the icons.
2. Uninstall the application using: C:\AppSetup.exe /exebasicui /x // /qb
The application gets uninstalled seemingly OK.
3. Install the application again using: C:\AppSetup.exe APPDIR=C:\AppPath ALLUSERS=1 /qb
The application seems to be correctly installed. For a while during the installation, the shortcuts are shown with the correct icons. Before the installation ends, the icons become empty.
Unfortunately, we are still not able to reproduce the behavior on our test machines. I'm not sure why you are encountering this behavior. Can you uninstall your product using a command line like this:

Code: Select all

msiexec.exe /x {product code} /qb
and see if the behavior still persist?

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

Return to “Common Problems”