A setup installer created in Inno is not opening folder shortcuts correctly in Windows 10.
The folder location is in the source programs Program Files location: "C:\Program Files (x86)\ABCCOMPANY\PORTEDPROGRAM" This is an older XP win32 application, if that info helps.
What I want is to create these folder shortcuts located in the Start Menu and the Desktop of the user so they can access the source.
The Inno code: (notice the first and fourth commands, both include the Flags for folder shortcut.
[Icons]
Name: "{userprograms}\ABC Company\Ported Program for Windows 10"; Filename: "C:\Program Files (x86)\ABCCOMPANY\PORTEDPROGRAM"; Comment: "Ported Program (comment)"; IconFilename: "C:\Program Files (x86)\ABCCOMPANY\PORTEDPROGRAM\PPicon.ico"; Flags: foldershortcut
Name: "{userprograms}\ABC Company\CT"; Filename: "C:\Program Files (x86)\ABCCOMPANY\PORTEDPROGRAM\CT.exe"; Comment: "CT Prog"
Name: "{userprograms}\ABC Company\Uninstall Ported Program for Win10"; Filename: "C:\Windows\unins000.exe"; Comment: "Uninstall Ported Program"
Name: "{userdesktop}\Ported Program for Windows 10"; Filename: "C:\Program Files (x86)\ABCCOMPANY\PORTEDPROGRAM"; Comment: "Ported Program (comment)"; IconFilename: "C:\Program Files (x86)\ABCCOMPANY\PORTEDPROGRAM\PPicon.ico"; Flags: foldershortcut
The program is installed by the user, which is why I tried {user...}. An earlier attempt used {common...} which did not resolve. I haven't tried {group...} because I'm not sure what that does.
When attempting to open these files, I get this dialog box.
It seems like a normal shortcut...
Any ideas why the shortcut doesn't open correctly?
If PORTEDPROGRAM
is a directory and you wish to create a shortcut to the directory then the target directory must exist before the shortcut is created. (Should not be a issue because [Dirs]
and [Files]
are executed before [Icons]
)
You should also remove the foldershortcut
flag because it creates a special folder shortcut that is not supported on Windows 7 and higher. You can create a shortcut to a folder without this flag.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments