Hi,
I apologize for the delayed reply.
First, I need my application to be installed on a network drive or a UNC path. To verify that, the best solution is probably to check the first char of the APPDIR , lets say it has to be either "\", "F","G","W" etc.
Assuming that Customers use a dedicated server for my software, there is ususally a maximum of two partitions and a dvd drive, which would add up to E:\, F:\ would be the first possible letter for a network drive.
How can i run this check at the time that the user proceeds to the next page of the installer?
To achieve this, you can add a "Process data" custom action on the "Next" button of the "FolderDlg" dialog. That custom action will get the first character of the "APPDIR" property and place it into a custom property (e.g. use the "Extraction" type for this). Then you can use another "Process data" custom action of type "Matching" and have a Regex that see if the new property contains the characters you need placing the result in a new property.
After this, you can add a "Display message box" custom action that will be displayed based on the result property. If this is too complicated, you can create your own C++, C#, VBS custom action that does these checks and execute it on the "Next" button of the "FolderDlg" dialog.
Second: Is it possible to create temporary TXT Update sets or delete the files after the installer has finished everything else?
-> Context: I need to create a .cmd or .bat file with some user-defined parameters, including a password. Normally i would not bother about those 6KB txt files, but as there is a mySQL root-password written, I would like to delete the files asap after the installer has finished.
Yes, for this you can add an empty .cmd or .bat file in the "Files and Folders" page using the "Add Temporary Files" toolbar button, then add the a "TXT Update" file next to it. The empty file will be updated during the "Add Resources" action group, you can execute it and it will be removed during the "Finish Execution" action group after the "Install Finalize" standard action.
Oh, and another thing: is it possible to then write the network drive to another parameter?
For example, the APPDIR is "W:\Software\WIAS\[ProductName]\" - can I save only the "W:\" into another parameter?
You can can create a "Process data" custom action as explained above to achieve this.
I also noticed, when installing to a Network drive and then creating desktop shortcuts to [APPDIR]\whatever.exe - It does not point the shortcuts to "W:\Software..." but to "\\[ComputerName}\Software..." - the according UNC path. This raises the question: can I retrieve the UNC path of the network drive too and put it into an additional parameter?
(I need all those paths to configure some services which need both for whatever reason - never change a running system)
I'm afraid that I'm not aware of any way to get the UNC path. You may be able to achieve this through a custom action implemented by yourself.
Best regards,
Eusebiu