1
votes

we use inno setup to create installer. We use this in our script:

[Icons]
Name: {commondesktop}\{#Brand}; Filename: {app}\{#Brand}.exe; Tasks: MYAPP; WorkingDir: {app}

to create a desktop. it worked fine. But now, we want to only create the desktop shortcut if it's not already there. i guess somehow i have to use the if statement, but seems like "if" is not recognized in the [Icons] section. is there a way to do it? Thanks James

1
Welcome to StackOverflow. I edited your question to format the code, you can re-edit it to see how it works. Take a look also at the FAQ to learn how the site works.jachguate

1 Answers

2
votes

Use a Check parameter that tests for the existence of the shortcut file.