Indigo Rose Software
  #1  
Old 09-27-2004
Sheritlw Sheritlw is offline
Indigo Rose Customer
 
Join Date: Sep 2004
Posts: 25
Huh? Argument 1 must be of type string

I have 3 packages that only get installed if selected. I created 3 Select Install Folder screens, 1 for each package. I have put the following code into the next action of the Select Packages screen and similiar code in the next action portion of the Install Folder screens and get the error "Argument 1 must be of type string" when I click Next. HELP!!

if (SetupData.GetPackageProperties(UserSetup)) then
Screen.Next();
else
if (SetupData.GetPackageProperties(DatabaseSetup)) then
Screen.Jump(InstallDataFiles);
else
if (SetupData.GetPackageProperties(Utilities)) then
Screen.Jump(InstallUtilities);
else
Screen.End();
end
end
end
Reply With Quote
  #2  
Old 09-27-2004
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Quote:
Originally Posted by Sheritlw
I have 3 packages that only get installed if selected. I created 3 Select Install Folder screens, 1 for each package. I have put the following code into the next action of the Select Packages screen and similiar code in the next action portion of the Install Folder screens and get the error "Argument 1 must be of type string" when I click Next. HELP!!

if (SetupData.GetPackageProperties(UserSetup)) then
Screen.Next();
else
if (SetupData.GetPackageProperties(DatabaseSetup)) then
Screen.Jump(InstallDataFiles);
else
if (SetupData.GetPackageProperties(Utilities)) then
Screen.Jump(InstallUtilities);
else
Screen.End();
end
end
end
If UserSetup is the name of a package, you need to put it in quotes, like so:

Code:
if (SetupData.GetPackageProperties("UserSetup")) then
If InstallDataFiles is the name of your screen, you need to put the name in quotes as well.

GetPackageProperties also returns a table...if you're wanting to determine whether the "UserSetup" package will be installed, use this code instead:

Code:
if (SetupData.GetPackageProperties("UserSetup").Install) then
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
attempt to index a string value csd214 AutoPlay Media Studio 5.0 8 08-08-2004 02:23 AM
Function: Show/Hide All Objects of a Specific Type Brett AutoPlay Media Studio 5.0 Examples 0 05-10-2004 03:29 PM
Function: Convert boolean value to string Desmond AutoPlay Media Studio 5.0 Examples 0 05-07-2004 02:14 PM
"Get Delimited String" -- Delimiter can be a string? Bishal Setup Factory 6.0 1 10-16-2003 11:40 AM
How to define argument for progr on CD? Harry Kiesel AutoPlay Menu Studio 3.0 2 11-26-2001 10:50 AM


All times are GMT -6. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software