/build/static/layout/Breadcrumb_cap_w.png

Permissions on INI files

How do we set [read write ] permission on the ini files ?
I am using installshield developer 8, i cannot set permission on the ini file from the ini file changes table and i cannot put the ini file name in the lock permission table to grant rw access. any suggestions?

0 Comments   [ + ] Show comments

Answers (5)

Posted by: KPrinz 20 years ago
Fourth Degree Green Belt
1
can you launch an external command from within your installer ?

would a cheap solution like

cacls %windir%\filename.ini /C /G Users:C

do it, or is this far more complicated than I think ?
Posted by: bkelly 20 years ago
Red Belt
1
If this is a new file, you could install it as a file (from there you can right-click and see a permissions button in the properties dialog). Otherwise, a custom action to run the cacls command is not a bad idea. You may get a way with a VBscript custom action as well, but it would likely require WMI on the client.
Posted by: bheers 20 years ago
Second Degree Blue Belt
1
adding an INI file as a file and setting it as a key file
when self heal occurs it replaces the latest ini file with the old one, if any changes are made agter the install , they are lost. i have already used cacls . it works. is there any option in installshield to do that ?
Posted by: bkelly 20 years ago
Red Belt
1
You can control the "self-heal" behavior of the file to ensure that does not happen, but if cacls is working for you, I'd go for it. While there are likely other ways to do it, InstallShield does not appear to expose the changing of permissions for an INI file in their GUI.
Posted by: Robo Scripter 20 years ago
Orange Senior Belt
1
bheers,

In the Custom Action Table Change the Action Type to 3170.
Then move the Action in the InstallExecuteSequence Table to an area between "Publish Products" and "InstallFinalize"
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ