Shavit printz
Shavit printz

Reputation: 1

How to make installation default path to user desktop with Inno Setup

I'm using Inno setup for make a installation to my program.
And I would like to know, how to make the program to be installed in the user desktop by default?

I figured out, I need to use DefaultDirName=.

I need to know, what to write there for install to be on user desktop be default.

Any help?

Upvotes: 0

Views: 1487

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202222

Use {userdesktop} constant:

[Setup]
DefaultDirName={userdesktop}

You may also consider setting PrivilegesRequired to lowest, as you probably do not need the installer to run with Administrator privileges.

[Setup]
PrivilegesRequired=lowest

Upvotes: 2

Related Questions