Need help in making setup file in runtime
-
I have a .exe file in which there are certain options to choose. According to choose of these options I have to make a installer. How can I achieve this. Any Idea?????? Thanks in advance.
How are you creating the installation package if the options were known? Are you using any installation SDK in specific?
It is a crappy thing, but it's life -^ Carlo Pallini
-
How are you creating the installation package if the options were known? Are you using any installation SDK in specific?
It is a crappy thing, but it's life -^ Carlo Pallini
Thanks for quick reply... Let me clear my question... I have a exe file of the project. In this the option choosing page along with all the forms which are needed for the particular option. Lets say if I tick 2 option among 5 option then I should have to make setup file taking only the forms related to the options I choose. Its like a making setup file in runtime.
-
Thanks for quick reply... Let me clear my question... I have a exe file of the project. In this the option choosing page along with all the forms which are needed for the particular option. Lets say if I tick 2 option among 5 option then I should have to make setup file taking only the forms related to the options I choose. Its like a making setup file in runtime.
I understood your query, but I was asking you if you are using any setup SDK in particular. Not all installers offer you an API that you can use from your code (they only have a GUI). You might want to use the Windows installer SDK[^]. The API reference for the same is here[^]. CodeProject has a wrapper class around the said API - Wrapping the Windows Installer 2.0 API[^]
It is a crappy thing, but it's life -^ Carlo Pallini
-
Thanks for quick reply... Let me clear my question... I have a exe file of the project. In this the option choosing page along with all the forms which are needed for the particular option. Lets say if I tick 2 option among 5 option then I should have to make setup file taking only the forms related to the options I choose. Its like a making setup file in runtime.
If the setup is relatively simple, you might as well consider doing the packaging yourself with the cab SDK[^] or you could create a self-extracting archive. If you choose to do it with a self-extracting archive, there are several ways (z-lib, lzma sdk, etc.,). I remember there was a C# wrapper around the lzma sdk (and that supported creation of self-extracting archives from your code) . A search must bring up plenty of options.
It is a crappy thing, but it's life -^ Carlo Pallini