|
#1
|
|||
|
|||
|
install folder
Can somebody provide me some codescripting how i can make my setup only chose LOCAL drives, not network neighborhood etc.
|
|
#2
|
||||
|
||||
|
Assume DRIVE.GETTYPE does not work?
If not there are some API calls you may want to try but I suspect SUF7 is already using those in the DRIVE. commands. John |
|
#3
|
|||
|
|||
|
Jup that was what i'm searching for, i'm new into SF7
![]() I want to make a NOT structure, what is a good code for it: if (strTypeDrive != 3) then < doesn't work if (strTypeDrive <> 3) then < nether |
|
#4
|
||||
|
||||
|
Remember that DRIVE.TYPE returns a number not a string.
So you could use something like: drivetype = Drive.GetType("M:"); -- Check if drive type NOT a fixed drive if (drivetype ~= DRIVE_FIXED) then ... I would suggest you look at the excellent examples available on most of the Help screens and also the Expressions and Operators help subject. Rgds John |
|
#5
|
|||
|
|||
|
well i looked @ the help and examples, but didn't find it
![]() But fenks for your help!!!! |
|
#6
|
||||
|
||||
|
A) Click the ADD ACTION.
Select DRIVE.GETTYPE. Click HELP Help screen appears. Click the EXAMPLES tab just below the title line. B) Click SEARCH Enter "expression" (without ") as the search 3rd option down shows the Expressions and Operators help. John |
|
#7
|
||||
|
||||
|
Hi brianlesker,
If you are trying to do this for a Select Drive screen then there is an easy way for you to enable this. look on the On Preload code for this screen and find the following section: Code:
-- from _SUF70_Global_Functions.lua: -- fill a table with all fixed and remote drives tbDrives = g_GetDriveLetters(DRIVE_FIXED, DRIVE_REMOTE); --[[ ************************************************** ******** Function: g_GetDriveLetters Purpose: Fills a table with the drive letters (e.g. 'C:') for all of the drives that match a specific list of drive types, or for all of the drives on the system if no list of drive types is specified. Arguments: Call this function with the list of drive types you want to include in the table, e.g. g_GetTableOfDriveLetters(DRIVE_FIXED, DRIVE_REMOTE) Returns: (table) A numerically indexed table of drive letters. ************************************************** ********* --]] So if you wanted to use this screen, but you only wanted it to show local hard drives simply change the code to read: Code:
tbDrives = g_GetDriveLetters(DRIVE_FIXED);
__________________
MSI Factory The Next Generation Intelligent Setup Builder |
|
#8
|
||||
|
||||
|
Mark - Better example than mine of course - John
|
|
#9
|
|||
|
|||
|
PreLoad:
-- These actions are performed before the screen is shown. -- calculate the amount of space required for the installation _SpaceRequired = SetupData.CalculateRequiredSpace(); -- format it as a string with an appropriate unit of measurement (e.g. "0 bytes") local strSpaceRequired = String.GetFormattedSize(_SpaceRequired); -- store the string in a session variable so it can be used in the screen text SessionVar.Set("%SpaceRequired%", strSpaceRequired); -- from _SUF70_Global_Functions.lua: -- update the 'Space required:' message (expands any session variables in it) g_UpdateStaticTextCtrl(CTRL_STATICTEXT_SPACEREQUIR ED, "IDS_CTRL_STATICTEXT_SPACEREQUIRED"); -- These actions are performed before the screen is shown. -- calculate the amount of space required for the installation _SpaceRequired = SetupData.CalculateRequiredSpace(); -- format it as a string with an appropriate unit of measurement (e.g. "0 bytes") local strSpaceRequired = String.GetFormattedSize(_SpaceRequired); -- store the string in a session variable so it can be used in the screen text SessionVar.Set("%SpaceRequired%", strSpaceRequired); -- from _SUF70_Global_Functions.lua: -- update the 'Space required:' message (expands any session variables in it) g_UpdateStaticTextCtrl(CTRL_STATICTEXT_SPACEREQUIR ED, "IDS_CTRL_STATICTEXT_SPACEREQUIRED"); Don't find: tbDrives ...?? Maybe i'm to stupid to get it? |
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HOWTO: Download and Install Files from the Web | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-23-2002 02:16 PM |
| HOWTO: Limit the Number of Times an Install can be Run | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-17-2002 03:58 PM |
| HOWTO: Create a Silent Install with Setup Factory 5.0 | Support | Setup Factory 5.0 | 0 | 10-08-2002 03:08 PM |
| Selecting the Install Folder | VictorReinhart | Setup Factory 5.0 | 1 | 08-01-2001 10:52 AM |
| Allow users to create new folder during install | bbrenner | Setup Factory 5.0 | 1 | 04-25-2001 01:51 PM |
All times are GMT -6. The time now is 06:53 AM.









Linear Mode

