hidrau
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:BrazilianPortugu ese.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\englishtrav el.exe"; DestDir: "{app}"; Flags: ignoreversion; permissions: everyone-full
;Source: "C:\TeachMeNow\palestra.ex e"; 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\Sap i4\spchapi .exe"; DestDir: "{app}\Engines\Sapi4\"; Flags: ignoreversion; permissions: everyone-full
Source: "C:\TeachMeNow\Engines\Bra zilian\lht tsptb.exe" ; DestDir: "{app}\Engines\"; Flags: ignoreversion
Source: "C:\TeachMeNow\Engines\mst tsl.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:UninstallProg ram,Teach Me Now}"; Filename: "{uninstallexe}"
Name: "{userdesktop}\Teach Me Now"; Filename: "{app}\englishtravel.exe"; Tasks: desktopicon; WorkingDir: "{app}"
Name: "{userappdata}\Microsoft\I nternet Explorer\Quick Launch\Teach Me Now"; Filename: "{app}\englishtravel.exe"; Tasks: quicklaunchicon
[Run]
;Filename: "{app}\Agentes\Merlin\Merl in.exe"; Description: "Instalando o agente"; Flags: skipifsilent
Filename: "{app}\Engines\Sapi4\spcha pi.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.ex e"; Parameters: "/Q" ; Description: "Instalando as vozes"; Flags: skipifsilent
Filename: "{app}\englishtravel.exe"; Description: "{cm:LaunchProgram,Teach Me Now}"; Flags: nowait postinstall skipifsilent
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:BrazilianPortugu
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon
[Files]
Source: "C:\TeachMeNow\englishtrav
;Source: "C:\TeachMeNow\palestra.ex
Source: "C:\TeachMeNow\BSS\*"; DestDir: "{app}\BSS\"; Flags: ignoreversion; permissions: everyone-full
Source: "C:\TeachMeNow\CSpeechKit.
;Source: "C:\TeachMeNow\qtintf.dll"
Source: "C:\TeachMeNow\config.ini"
Source: "C:\TeachMeNow\Merlin.aal"
Source: "C:\TeachMeNow\Engines\Sap
Source: "C:\TeachMeNow\Engines\Bra
Source: "C:\TeachMeNow\Engines\mst
;Source: "C:\TeachMeNow\ManualHelp\
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:UninstallProg
Name: "{userdesktop}\Teach Me Now"; Filename: "{app}\englishtravel.exe";
Name: "{userappdata}\Microsoft\I
[Run]
;Filename: "{app}\Agentes\Merlin\Merl
Filename: "{app}\Engines\Sapi4\spcha
Filename: "{app}\Engines\msttsl.exe"
Filename: "{app}\Engines\lhttsptb.ex
Filename: "{app}\englishtravel.exe";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER
Yeah, It worked very fine
Thanks once again for your help
Alex