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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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 ?
Answered 02/05/2004 by: KPrinz
Fourth Degree Green Belt

Please log in to comment
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.
Answered 02/05/2004 by: bkelly
Red Belt

Please log in to comment
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 ?
Answered 02/05/2004 by: bheers
Second Degree Blue Belt

Please log in to comment
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.
Answered 02/05/2004 by: bkelly
Red Belt

Please log in to comment
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"
Answered 02/05/2004 by: Robo Scripter
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity