Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2

Thread: Help!! Actions

  1. #1
    Join Date
    Sep 2004
    Posts
    25

    Huh? Help!! Actions

    I have spent the last two days trying to figure out what I am doing wrong. I have search through help,knowledgebase... everything.
    What I am trying to do is create a conditional setup that is dependent on what package(s) are selected.
    I have created the packages, but have been trying to figure out how to detect (I've looked at the On Ctrl.. no real help there) whether a package is selected.
    If a particular package is selected (sql express) then I need to see if SQL EXpress is installed. If it is, then I need to run my database creation tool (and exe). If it's not then I need to first install sql express then install the database.exe.

    So what I've tried thus far (I have erased many other attempts)

    sdbInstall = SetupData.GetPackageProperties("Database");
    bdbInstall = Database.Install;
    bKeyExists = false
    if bdbInstall then
    bKeyExists = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Microsoft SQL Server\\SQLEXPRESS");

    If bKeyExists then
    InstallDB = File.Install(SessionVar.Expand("%AppFolder%\\DB\\S cheduleEZDB.exe"), "_TempFolder", FILE_INSTALL_SAMEOLDER, false, false, nil, nil);
    result = File.Run(_TempFolder.."\\ScheduleEZDB.exe", "", "", SW_SHOWNORMAL, true);
    else-- I need to run sqlexpress and then run db
    end
    end
    Screen.Next();


    I always get an error on this line that it is expecting =
    If bKeyExists then

    Really frustrated, your help is greatly appreciated.
    btw.. there is no space in ScheduleEZDB.exe (the message isn't displaying exactly as it is written)

    Thanks
    Sheri

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    In your script you have an upper case 'I' on the second If statement. It should always be lower case "if" rather than "If".

    Is this a compile error or a runtime error when you are trying to test the install?

    Adam Kapilik

Similar Threads

  1. TrueUpdate 2.0 Update (v2.0.6.0) Released
    By Brett in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 10-31-2006, 01:10 PM
  2. Example: Using Zip Actions
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 03:07 PM
  3. Spotlight: XML Actions Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-15-2004, 03:56 PM
  4. HOWTO: Set up an MP3 Playlist
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 11:57 AM
  5. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts