Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

I need a help with inno setup

Hello guys

I am having a problem when I install my system on Windows Vista.
I need to give all rights to the user on the folder of the system and this has being my problem.
In the main folder, the system needs to create some files when it runs, but the windows vista
doesn't allow it. Then I need to access the folder, on the security property I give all rights to the
user and the system works fine.

Please, take a look at code bellow so that you can see if I am giveng the correct form the rights on the folders.

Thanks very much



[Languages]
Name: "eng"; MessagesFile: "compiler:BrazilianPortuguese.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\TeachMeNow\englishtravel.exe"; DestDir: "{app}"; Flags: ignoreversion; permissions: everyone-full
;Source: "C:\TeachMeNow\palestra.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\TeachMeNow\BSS\*"; DestDir: "{app}\BSS\"; Flags: ignoreversion; permissions: everyone-full
Source: "C:\TeachMeNow\CSpeechKit.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "C:\TeachMeNow\qtintf.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\TeachMeNow\config.ini"; DestDir: "{app}"; Flags: ignoreversion; permissions: everyone-full
Source: "C:\TeachMeNow\Merlin.aal"; DestDir: "{app}"; Flags: ignoreversion; permissions: everyone-full
Source: "C:\TeachMeNow\Engines\Sapi4\spchapi.exe"; DestDir: "{app}\Engines\Sapi4\"; Flags: ignoreversion; permissions: everyone-full
Source: "C:\TeachMeNow\Engines\Brazilian\lhttsptb.exe"; DestDir: "{app}\Engines\"; Flags: ignoreversion
Source: "C:\TeachMeNow\Engines\msttsl.exe"; DestDir: "{app}\Engines\"; Flags: ignoreversion; permissions: everyone-full
;Source: "C:\TeachMeNow\ManualHelp\*"; DestDir: "{app}\ManualHelp\"; Flags: ignoreversion
Source: "C:\TeachMeNow\wav\*"; DestDir: "{app}\wav\"; Flags: ignoreversion recursesubdirs createallsubdirs; permissions: everyone-full
Source: "C:\TeachMeNow\videos\*"; DestDir: "{app}\videos\"; Flags: ignoreversion recursesubdirs createallsubdirs; permissions: everyone-full
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[dirs]
Name: "{app}"; Permissions: everyone-modify
Name: "{app}\wav"; Permissions: everyone-modify
Name: "{app}\Bss"; Permissions: everyone-modify
Name: "{app}\videos"; Permissions: everyone-modify


[Icons]
Name: "{group}\Teach Me Now"; Filename: "{app}\englishtravel.exe"
Name: "{group}\{cm:UninstallProgram,Teach Me Now}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\Teach Me Now"; Filename: "{app}\englishtravel.exe"; Tasks: desktopicon; WorkingDir: "{app}"
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Teach Me Now"; Filename: "{app}\englishtravel.exe"; Tasks: quicklaunchicon

[Run]
;Filename: "{app}\Agentes\Merlin\Merlin.exe"; Description: "Instalando o agente"; Flags:  skipifsilent
Filename: "{app}\Engines\Sapi4\spchapi.exe"; Description: "Programinstalando o sapi 4"; Flags:  skipifsilent
Filename: "{app}\Engines\msttsl.exe"; Parameters: "/Q" ; Description: "Instalando as vozes"; Flags:  skipifsilent
Filename: "{app}\Engines\lhttsptb.exe"; Parameters: "/Q" ; Description: "Instalando as vozes"; Flags:  skipifsilent
Filename: "{app}\englishtravel.exe"; Description: "{cm:LaunchProgram,Teach Me Now}"; Flags: nowait postinstall skipifsilent
ASKER CERTIFIED SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hidrau

ASKER

Hy Ciuly

Yeah, It worked very fine

Thanks once again for your help

Alex
Avatar of hidrau

ASKER

thanks
great. you will need to pay attention though sinc ehtis issues a security risk in your applicaiton. your program files (exe's) should not be modify-able by everybody. in the files section, you will have to set a minimum access to the exe files. like everyone-readexec