Calling a 'to be' installed script before extracting the files to output folder
I am fairly new to NSIS and am trying to figure out a way to run a VBScript on the target system and obtain certain information from it before modifying the target system in any way (including extracting the files). This is the business requirement. I need to make sure that I gather all the input from the user and then verify that it is valid (using the VBScript that is to be run on the target system) and then finally install the files.
Below is my page flow, I am using MUI2 with custom pages:
!insertmacro MUI_PAGE_LICENSE "license.rtf"
Page custom SetUpConfiguration CheckConfiguration
Page custom ConfigurationErrorHandling
The CheckConfiguration function is trying to execute the VBScript but it is not working right now.
Thank you for the response. I need to check and see if the solution you suggested works inside a function. I am looking for something that goes inside a function. I am trying to avoid writing the code in NSIS as the VBScript code I have is huge!
Thanks man, I am going to check it out now. I have a check for the WSH. I made the code in such a way that the installer aborts if WSH is missing or disabled. The product will be installed in a lhighly restricted environment with limited users so as long as it works well in that environment I am happy