How to write installation script for msi. and how to use custom action for assigning the permissions to the files, folder and registries?

 

3 Comments   [ + ] Show Comments

Comments

  • Let's guess what language/technology you want to use for the script, shall we?

    As for a tutorial on Custom Actions, no-one really has time to list that out for you. Besides, for the present, you can use the LockPermissions/MSILocckPermissionsEx tables to set permissions. Just remember that using that table *replaces all permissions* on the target so you need to be sure to add all the standard accounts and their permissions (e.g. Local System) to the table.

    It's clear that you're new to Windows Installer (WI) so do yourself a favour and download Phil Wilson's e-book, The Definitive Guide to Windows Installer and the similarly-titled The Definitive Guide to Windows Installer Technology (I can't recall the author's name). You will struggle without knowing the fundamentals of WI.
  • VBScab, the author for the second title might be Mike Gunderloy. The downloadable version is an unedited draft so may not be entirely error free, but its where I learned my MSI craft back in 2001.
    • No, that's not the one. I just Googled it. It's actually called 'The Definitive Guide to Windows Installer Technology for System Administrators', a snappy title if ever there was one!
      • Ah yes, I remember it now. It was commissioned by Wise and was a free download on their website a decade or more back. Then I think there was some sort of falling out with Darwin Sanoy and it was removed.
  • Hi Vikram
    Agree completely with VBScab about Phil Wilsons E-Book.

    Custom Actions
    http://msdn.microsoft.com/en-us/library/aa367431%28v=vs.85%29.aspx

    Are you using Powershell? What scripting experience have you? Do you need pointers or do you want someone to post a script for you?
Please log in to comment

There are no answers at this time

Answers

Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share