Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    12

    how do you call a windows function?

    I am trying to call the Add/Remove Programs Dialog box via the appwiz.cpl file in c:\windows\system32 folder. Similar to using the above file from the command prompt in the START>> RUN dialog. This is for a "Removal of Software" button.

    "ON CLICK"
    File.Run("appwiz.cpl", "", "", SW_SHOWNORMAL);

    Am I missing something... does it HAVE to be an EXE? Will AMS 5.0.5.0 not recognize the .cpl file extension?

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Try this code below. You have to call the rundll32.exe file with the parameters to open the Add/Remove Programs screen.

    Code:
    File.Run("rundll32.exe", "shell32.dll,Control_RunDLL appwiz.cpl,,0", "", SW_SHOWNORMAL, false);

Similar Threads

  1. Function: Setting Windows Wallpaper
    By TJ_Tigger in forum AutoPlay Media Studio 5.0 Examples
    Replies: 27
    Last Post: 07-14-2007, 07:41 AM
  2. Another tough one... Interaction between Web and AMS
    By Agent Jones in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-18-2005, 02:10 PM
  3. How do I get the exit status of a program?
    By ahewgill in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 07-22-2004, 03:46 PM
  4. INFO: JET and MDAC (Complete) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:35 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