Camille
Camille

Reputation: 43

How to avoid Inno to remember DefaultGroupName chosen during the previous install

I have some problem with Inno Setup. I have two .exe with the same GUID (the second are the updated first). I'm trying to create new [Icon] into second :

DefaultGroupName = XXXX_2

[Icons]    
Name: "{group}\XXXX"; Filename: "{drive:{app}}\XXXX\XXXX.exe";  WorkingDir:"{drive:{app}}\XXXX"; IconFileName: "{drive:{app}}\XXXX\XXXX.ico"

but during the installation, the Select Start Menu Folder field are the same than the first .exe ( XXXX_1 ). I know that it's about the DefaultGroupName. By default Inno will remember the paths chosen during the previous install and default to those, even if you change your script.

And, I would know how to avoid this behaviour ?

To resolve this problem, I have to change the GUID. But I dont want two entries for one software into add/remove. And I think this is a little dirty solution.

Someone knows about that ? Thanks you !

Upvotes: 4

Views: 1021

Answers (1)

Sertac Akyuz
Sertac Akyuz

Reputation: 54812

See UsePreviousGroup.

[Setup]
UsePreviousGroup=no

Upvotes: 3

Related Questions