Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    2

    Huh? Opening files after installation

    As a newbie to SF7 forgive me if this simple question has been answered before. I have no problem building my installation but I want to give the user the option of viewing one of two .pdf files after installation. I have added 2 radio buttons to the "After Installation" screen and inserted the following code into the "On Next" actions: -

    fAppFolder = SessionVar.Expand("%AppFolder%")
    nSelControl = SessionVar.Expand("%RadioSelection%")

    if nSelControl == CTRL_RADIO_BUTTON_01 then
    File.Open(fAppFolder.."\\File1.pdf", "", SW_SHOWNORMAL)
    elseif nSelControl == CTRL_RADIO_BUTTON_02 then
    File.Open(fAppFolder.."\\File2.pdf", "", SW_SHOWNORMAL)
    end

    Irrespective of which button is selected neither of the "if" statements is ever true and neither file is opened. I have tried tracing the code but even if nSelControl is the same value as one of the buttons the file is still not opened, any ideas?

  2. #2
    Join Date
    Aug 2005
    Posts
    2

    Lightbulb Doh! Opening files after installation

    Just noticed the line in the help that tells me that I need to convert the string to a number before comparison! But Debug.SetTraceMode shows the value as a number anyway, there is no indication that it's a string!

Similar Threads

  1. method to index/compare user's files for update?
    By intel352 in forum Setup Factory 6.0
    Replies: 0
    Last Post: 01-15-2003, 03:08 PM
  2. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM
  3. INFO: Why Files are Renamed in the DATA Folder
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 03:36 PM
  4. Random opening of files (how to)
    By grizedale in forum AutoPlay Media Studio 4.0
    Replies: 14
    Last Post: 09-30-2002, 04:22 PM
  5. HOWTO: Remove Files that were Installed by a Patch or Alternate Source
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-24-2002, 09:49 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