Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Location
    INDIA
    Posts
    19

    Grin Setup Factory and DOS Command Prompt....

    Hi ...

    I have installed the MS Office Word Viewer 2003 tool with my Setup Factory 7 file, so that there's inbuilt support for veiwing the Help & Documentation files for the s/w i am developing.
    But i am having a hassle uninstalling it. I follow a good programming practice of removing everything when my s/w product is uninstalled. And not to litter other's PC's. But this Word Viewer 2003 tool seems to stick on.

    NOTE: This tool can be uninstalled perfectly and completely from the Windows Add Remove Control Panel...but this is not what i want. I want my Setup Factory 7 file to uninstall it when my product gets uninstalled.

    I am giving directions below to conduct the tests....and recieve some help from someone....
    Please goto this link and download the Microrosft Office Word Viewer 2003.
    http://www.orbitfiles.com/download/id1338701714. I have compressed the file with WINRAR and uploaded it. So you will require that WINRAR tool is instaled in the PC to open this. Please don't worry. There is no virus or worm. Its absoluetely clean. You can check it with any antivirus also to verify. I know very well that if i post a virus then my name will get spoilt, so please trust me and try to help me out in this issue.

    After installing it, you'll see the MS Office Word Viewer application installed in Windows Control Panel. And this s/w creates an uninstaller file which has different names on every install but has the same GUID everytime. Its an .msi file package and is located at "C:\Windows\Installer" path

    I want to know how to uninstall this MS Office Word Viewer 2003 tool from teh MS-DOS Command Prompt.
    I tried this command but a box pops up for 1 second and vanishes ...and the Word Viewer 2003 tool is still not getting uninstalled.

    After navigating to this "c:\Windows\Installer\" path via the command prompt type in this-->
    ==================================================
    msiexec /x{A90C621A-B6CF-4F4E-A00D-A8EFAE684CCB} /passive
    ==================================================
    where: {A90C621A-B6CF-4F4E-A00D-A8EFAE684CCB} is the GUID
    and /passive is an argument for a partial graphical UI.

    You can also type msiexec /? in START -> RUN to get more commands...

    To make things more understandable i am attaching 3 important images..please see them. Once i am sure that a particular DOS command can uninstall this Word Viewer, tool then i can put that into my coding to remove the .msi file when my product is installed.

    Please also note that i tried uninstalling another .msi file in the same way as above and its getting removed perfectly....but this WV 2003 thing is just not getting off via the DOS prompt.....

    Awaiting status very urgently....
    Attached Images
    Last edited by intellogo; 04-13-2007 at 09:11 AM.

  2. #2
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    You should be able to just use the file.run command.

    You can use the File.GetDefaultViewer to get the path to the windows installer program, and command line can be read from the Registry uninstall key for the product, I added the /Passive as well.

    Code:
    MSI = File.GetDefaultViewer("*.msi")
    arg=Registry.GetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{90850409-6000-11D3-8CFE-0150048383C9}","UninstallString","MsiExec.exe /I{90850409-6000-11D3-8CFE-0150048383C9}",REG_EXPAND_SZ);
    
    error = File.Run(MSI, arg.." /passive", "", SW_SHOWNORMAL, true)
    
    -- Test for error
    error = Application.GetLastError();
    if (error ~= 0) then
    	Dialog.Message("Error", error, MB_OK, MB_ICONEXCLAMATION);
    end

  3. #3
    Join Date
    Mar 2007
    Location
    INDIA
    Posts
    19

    Smile [CASE RESOLVED] Thanks buddy....

    Jason....ur absolutely A.M.A.Z.I.N.G.!!

    Whenever i have done several installs in the past for testing this Word Viewer tool, I would notice that there was some GUID being shown in that .MSI installer window having something like {9...}. But i could never makeout.

    I even went to the registry and did a full FIND/SEARCH WITH "Word" and got zero items found.

    I simply used the GUID found by u....with my already written SF7 code,
    which is this....{90850409-6000-11D3-8CFE-0150048383C9}..and now am successfully able to remove Word Viewer when my s/w gets uninstalled.

    A.w.s.o.m.e. man....!!
    Now that u told me abt the path to the Uninstall key, I know it.

    But....How in the holly world, were u able to hunt that cunning GUID down ??
    Please reply to this question and then forget abt this case....not vice versa please...I, too wanna know how u go tthe new GUID. U can PM it to me if u want.

    Thanks once again for really helping me as intellogo and lollypop00...THANX

  4. #4
    Join Date
    Mar 2007
    Location
    INDIA
    Posts
    19
    Did u scan every key manually in that Uninstall key to catch this new GUID ??

  5. #5
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    One of the Keys in the unstalls is something like "DisplayName" or something like that so I installed the product (Word Viewer ) and looked for its name in the uninstall,DisplayName = Word Viewer. The just export the key, and I can copy past the GUID at that point into my project.

    And the
    MSI = File.GetDefaultViewer("*.msi")
    is a VERY nice trick I figured out one day saves having to search it down.
    Last edited by Jason Pate; 04-16-2007 at 11:51 AM.

  6. #6
    Join Date
    Mar 2007
    Location
    INDIA
    Posts
    19

    Smile

    Thanks Jason buddy of imparting more knowledge.

    I liked the way u helped me out and want to keep u in my contact list.
    So please could u PM me (personally) with your personal E-MAIL address, so that i can enter u in my genuine G-Mail adress book.

    Thanks....

Similar Threads

  1. suf setup launched for dos box.
    By jassing in forum Setup Factory 6.0
    Replies: 5
    Last Post: 05-02-2003, 09:36 AM
  2. How to open a program with setup Factory 6?
    By Teegee in forum Setup Factory 6.0
    Replies: 1
    Last Post: 12-01-2002, 04:42 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