MSIs failing with error 2709 when creating shortcuts
I've been having an issue with all MSIs I create failing with error 2709. After a lot of troubleshooting, I've pinpointed it to the creation of the desktop shortcut using the built-in AppDeploy utility. If I do NOT create these shortcuts, the MSI works as it should but without any shortcuts created.
I tried adding a shortcut to the program myself by placing it in C:\Users\Public\Desktop, but AppDeploy doesn't pick up that a shortcut has been placed in that directory, and thus doesn't include it when doing the file scan. I tested adding a .txt file in C:\Users\Public\Desktop and it was detected, so it appears AppDeploy just ignores all .lnk files.
How can I get this to work? I'm using Windows 7 SP1 32bit.
I tried adding a shortcut to the program myself by placing it in C:\Users\Public\Desktop, but AppDeploy doesn't pick up that a shortcut has been placed in that directory, and thus doesn't include it when doing the file scan. I tested adding a .txt file in C:\Users\Public\Desktop and it was detected, so it appears AppDeploy just ignores all .lnk files.
How can I get this to work? I'm using Windows 7 SP1 32bit.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
dannyboygeek
13 years ago
Building off of what you found we have discovered that it is foreign characters that reference the exe file that you are creating the shortcut to. In our case we were creating a package for notepad++ with appdeploy repackager and we narrowed it down to the notepad++.exe file causing the 2709 error (shortcut: Notepad++ -> %PROGRAMFILES%\Notepad++\notepad++.exe). Once we changed notepad++.exe to notepadpp.exe (shortcut: Notepad++ -> %PROGRAMFILES%\Notepad++\notepadpp.exe)and rerouted all the dependencies ie shortcuts, registry files within the xml file and repacked it the error no longer came up and installed the program fine.
note: the folder that contains the executable can contain special characters (at least + signs)
note: the folder that contains the executable can contain special characters (at least + signs)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.