Adding folder navigation to an msi

152 views Asked by At

I am creating an MSI package for a windows service, untill recently i have always just performed the minimum using the installer class and then manually edited the app.config file afterwards. However, i need to make it easier for the users to carry out an installation themselves and this has meant replacing manual configuration with prompts at install.

I have managed to add a custom action to display a textbox and prompt for a folder destination, as well as ammending the installer to create the folder using the filepath entered into the text box, but i would prefer it if the filepath could be selected by browsing to the folder.

Can anyone suggest a good tutorial or steps to do this, as i am struggling.

Thank you

1

There are 1 answers

1
jonathanpeppers On

This would mean a redo, but you could use WiX to build your installer.

It has built in support for everything you need, and I don't think you would need any custom actions at all (unless there is something special you don't mention).

It does have a bit of a learning curve, however. Even if you don't go with it this time, it would be worth looking into for a new project.