Inno Setup shortcuts for folder are not opening in Windows 10

joshjayse

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. Attempting to open Inno created icons/shortcut

It seems like a normal shortcut... Ported Program folder shortcut

Any ideas why the shortcut doesn't open correctly?

Anders

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Inno Setup: MinVersion not working for Windows 10

From Dev

Windows 10 denies creating shortcuts in Start Menu Folder

From Dev

Remove Windows Frame - Inno Setup

From Dev

Remove Windows Frame - Inno Setup

From Dev

How to setup Windows 10 shared folder to use with Kubuntu in the same LAN

From Dev

How to delete a nonempty folder in inno setup

From Dev

Inno Setup: pack folder with all subfolders

From Dev

Inno Setup: Delete folder with Task function

From Dev

Inno Setup - Get a path to parent folder

From Dev

Inno Setup - How to set permissions of installation folder

From Dev

Creating shortcut in startup folder using Inno setup

From Dev

Inno Setup Create individual shortcuts on all desktops of all users

From Dev

Opening Shortcuts through Command Prompt Windows

From Dev

Installer created via Inno Setup, can't close applications during installation on Windows 10

From Dev

Inno 5 setup get Windows User name

From Dev

Inno Setup query Windows service status

From Dev

Inno Setup: Color for modal and browse directory windows

From Dev

Creating a windows installer for python using inno setup

From Dev

Inno Setup: Color for modal and browse directory windows

From Dev

Inno Setup Check additional (Windows Installer) mutex

From Dev

Windows 7 virus removed shortcuts and folder permisions

From Dev

WIndows Installer Putting shortcuts into a custom folder with a property

From Dev

Kafka setup in windows 10

From Dev

Set Windows file version for a setup file created by Inno Setup

From Dev

Bash for windows 10 not opening a program

From Dev

Android Studio Not Opening on Windows 10

From Dev

Inno Setup: Get 'Don't create a start menu folder' option

From Dev

How to test if FileExists in folder where Inno Setup is running?

From Dev

Inno Setup CreateInputDirPage but don't check for folder existence

Related Related

  1. 1

    Inno Setup: MinVersion not working for Windows 10

  2. 2

    Windows 10 denies creating shortcuts in Start Menu Folder

  3. 3

    Remove Windows Frame - Inno Setup

  4. 4

    Remove Windows Frame - Inno Setup

  5. 5

    How to setup Windows 10 shared folder to use with Kubuntu in the same LAN

  6. 6

    How to delete a nonempty folder in inno setup

  7. 7

    Inno Setup: pack folder with all subfolders

  8. 8

    Inno Setup: Delete folder with Task function

  9. 9

    Inno Setup - Get a path to parent folder

  10. 10

    Inno Setup - How to set permissions of installation folder

  11. 11

    Creating shortcut in startup folder using Inno setup

  12. 12

    Inno Setup Create individual shortcuts on all desktops of all users

  13. 13

    Opening Shortcuts through Command Prompt Windows

  14. 14

    Installer created via Inno Setup, can't close applications during installation on Windows 10

  15. 15

    Inno 5 setup get Windows User name

  16. 16

    Inno Setup query Windows service status

  17. 17

    Inno Setup: Color for modal and browse directory windows

  18. 18

    Creating a windows installer for python using inno setup

  19. 19

    Inno Setup: Color for modal and browse directory windows

  20. 20

    Inno Setup Check additional (Windows Installer) mutex

  21. 21

    Windows 7 virus removed shortcuts and folder permisions

  22. 22

    WIndows Installer Putting shortcuts into a custom folder with a property

  23. 23

    Kafka setup in windows 10

  24. 24

    Set Windows file version for a setup file created by Inno Setup

  25. 25

    Bash for windows 10 not opening a program

  26. 26

    Android Studio Not Opening on Windows 10

  27. 27

    Inno Setup: Get 'Don't create a start menu folder' option

  28. 28

    How to test if FileExists in folder where Inno Setup is running?

  29. 29

    Inno Setup CreateInputDirPage but don't check for folder existence

HotTag

Archive