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.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

1
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)
Answered 09/23/2011 by: dannyboygeek
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share