Providing File permissions in Installshield

Posted by Pawan Kumar on Stack Overflow See other posts from Stack Overflow or by Pawan Kumar
Published on 2014-08-20T19:46:07Z Indexed on 2014/08/20 22:20 UTC
Read the original article Hit count: 386

  1. I have created an installer in Installshield X.
  2. I want to give 'write permissions' to few files when the installation is done in Non-Admin Windows accounts ( by default it will have only 'read' permission).
  3. If I select individual file and go to properties (inside Installshield),i have permissions tab where they have provided options like Domain , Readonly, Full Control, Modify etc. I have tested these options but it doesn't effect the msi file.(specific files doesn't have write permission). Is there something wrong I am doing?
  4. There is another way of doing this, writing the script
Set objShell=CreateObject("WScript.Shell")
installDir = Session.Property("INSTALLDIR.5A884667_3CC4_41EC_B0F2_BEEAB457BB8C")
supportDir = Session.Property("SUPPORTDIR")
length = Len(installDir) 
lastChar = Right(installDir, 1)
if (lastChar = "\") Then
    installDir = Left(installDir, length - 1)
end if
   'MsgBox supportDir & "\setacl.exe """ & installDir & """ /dir /set S-1-5-32-545      /full /p:yes /sid /silent"
   objshell.Run supportDir & "\setacl.exe """ & installDir & """ /dir /set S-1-5-32-545 /full /p:yes /sid /silent",0,true

Can someone please explain me what is going on here? those last set s-1-5-32-545.

Thanks

© Stack Overflow or respective owner

Related posts about installer

Related posts about windows-installer