|
#1
|
|||
|
|||
|
Conditional File Install
Question: Is there a variable I can access which tells me which file is about to be patched?
Reason: I have a VP project with about a hundred files in a version. When a patch is being installed, only some of these files should be installed. To implement this, I've added a function to the "Script Condition" on each file. ![]() This function looks more or less like the following: function IncludeFileInInstall(sFileName) if (bServerInstallMode == true) then if (sFileName in arrayServerFiles) then return true; end end if (bClientInstallMode == true) then if (sFileName in arrayClientFiles) then return true; end end return false; end At the moment, I need to pass in the filename as parameter in the Conditions tab of the file Properties dialog. This becomes a maintenance nightmare when you have to implement it for every file and every version in the project. I'd much rather just say: function IncludeFileInInstall() --Parameter has been removed if (bServerInstallMode == true) then if (%CurrentFile% in arrayServerFiles) then --using current file variable return true; end end if (bClientInstallMode == true) then if (%CurrentFile% in arrayClientFiles) then --using current file variable return true; end end return false; end I nearly solved this problem, by setting a global sCurrentFileName variable for the filename using the e_CurrentItemText in the OnProgress event of the Progress screen, but unfortunately (and understandably) this event is fired after the condition script is evaluated. Any suggestions? Last edited by BrianMcD; 08-31-2006 at 11:35 AM. |
|
#2
|
||||
|
||||
|
Brian,
I have added this to our internal suggestions. REF: 13674 Adam Kapilik |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| http://yourfilelink.com - 50MB max upload, free! | Intrigued | General Chat | 14 | 09-26-2006 09:44 AM |
| Setup Factory and VS 2005 | vazir786 | Setup Factory 7.0 Discussion | 4 | 01-13-2006 09:47 PM |
| Conditional File Download During Install | greenace | Setup Factory 6.0 | 1 | 05-06-2003 01:11 PM |
| HOWTO: Download and Install Files from the Web | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-23-2002 02:16 PM |
| Install only into one of several directories with specific existing file? | RichardShaw | Setup Factory 5.0 | 0 | 08-17-2000 03:29 PM |
All times are GMT -6. The time now is 04:24 AM.







Linear Mode

