Incorrect SHORTCUTDIR in upgrade state on single user install type - Advanced Installer Community
avsemenov
Posts: 3
Joined: Thu Jul 27, 2017 7:29 am

Incorrect SHORTCUTDIR in upgrade state on single user install type

1. Install test app ver 1.0.0 for "Only fo me (user)"
2. try upgrade app executing cmd: msiexec /i "Your Application.msi" /l*v log.txt /qn

MainEngineThread is returning 1603
in log:
Property(S): SHORTCUTDIR = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Your Application\

but it should be:
Property(N): SHORTCUTDIR = C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Your Application\
Attachments
file.txt
(4 Bytes) Downloaded 264 times
Your Application.aip
(13.71 KiB) Downloaded 319 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Incorrect SHORTCUTDIR in upgrade state on single user install type

Hi,

This happens because your package is a "per-machine only" package type and when you launch it in silent mode, it will try to install per-machine. If you want to install it per-user in silent mode, you need to set the following properties in the command line: ALLUSERS=2 MSIINSTALLPERUSER=1

For example:

Code: Select all

msiexec /i "Your Application.msi" /l*v log.txt /qn ALLUSERS=2 MSIINSTALLPERUSER=1
Also, please keep in mind that if you want to let the user choose to install the package per-user or per-machine, you need to set the "Per-machine if user is administrator, per-user otherwise" option from the "Install Parameters" page as described in the "How do I make the package install per-user or per-machine" article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”