How to write an installation script for msi.

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
  • 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. - anonymous_9363 8 years ago
  • 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. - EdT 8 years ago
    • 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! - anonymous_9363 8 years ago
      • 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. - EdT 8 years ago
  • Hi Vikram
    Agree completely with VBScab about Phil Wilsons E-Book.

    Custom Actions

    Are you using Powershell? What scripting experience have you? Do you need pointers or do you want someone to post a script for you? - oreillyr 8 years ago

Answers (0)

Be the first to answer this question

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