A
A
Andrew2016-04-28 04:03:11
Software and Internet Services
Andrew, 2016-04-28 04:03:11

How to add file associations to silent installation?

Hello!
With the help of Inno Setup, I made a program installer, corrected the code and compiled it. After using the silent installation key, I launched and installed it, everything is fine.
Then I ran into such a problem that when I create an installer for example (Players, archivers, iso), it also expands everything but does not set the file association.
Tell me how can I add an association to a silent installation? Is it in the script? Or can bat be made and attached to the installation script? Or is there an easier option?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-04-29
@DeFunkyRock

I made an association of the Aimp player with mp3 files with the following code.

[Registry]
Root: HKLM; Subkey: Software\Classes\.mp3; ValueType: string; ValueName: ; ValueData: aimp; Flags: uninsdeletevalue
Root: HKLM; Subkey: Software\Classes\aimp\DefaultIcon; ValueType: string; ValueName: ; ValueData: {app}\aimp.dll,2; Flags: uninsdeletevalue
Root: HKLM; Subkey: Software\Classes\aimp\shell\open\command; ValueType: string; ValueName: ; ValueData: "{app}\aimp.exe ""%1"""; Flags: uninsdeletevalue

All mp3 files after a silent installation are launched through aimp, but the icons of the .mp3 files remained old, that is, they did not change to the aimp icon, but remained from the widnows player. (screen below) 955878080b134f21b8304a470b73d50c.jpg
There are suspicions that the icon is inserted here, but when I inserted the path to the location of the icon, nothing happened.
Can anyone come across or have suspicions how to fix this inconvenience =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question