Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Mar 2007
    Location
    INDIA
    Posts
    19

    Grin How to uninstall other s/w....

    Hi,

    My s/w package consists of two parts:
    1. Install a pre-required .MSI package
    2. Main S/W

    The installation of both these two parts are perfect. But NOT the uninstallation part.
    The Main S/W uninstallation is fine becoz its managed by SF7.
    But this issue is about uninstalling the topics at point: 1

    I need to uninstall the .MSI package which was embedded into my SF7 project.

    MY ISSUE:
    =======
    When i install my main s/w, then both points: 1 & 2, get installed. But when i uninstall, then only the mains/w gets uninstalled and NOT the first .MSI file.
    I can uninstall it via the Windows Control Panel....but i dont want to allow this since it can create complications for the end user, if an event of re-installation ever takes place.
    So, i want to uninstall the .MSI package also when my Main S/W is uninstalled.

    How do go abt this....

    I dont know any code in SF7....

    Awaiting urgent reply....

    ----
    Regards,
    intellogo.

  2. #2
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    You are probably better off reading this which explains how to use the command line to install/remove MSI files.

    John

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

    Star I am talking w.r.t.SF7....

    Hi,

    Well, thanks for providing a reponse...

    I am not asking for removal of s/w creatad by me, except the .MSI fils that have beenm packed into the setup installer.

    Please could u provide me a solution with respect to CR 11

  4. #4
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Don't forget that SUF7 will only uninstall files it knows it has installed. So if you added a MSI via an Action then you need to tell the Uninstaller to remove that by another action within that part of the project.

    But if you are trying to have the MSI uninstall the application automatically then you need to use the MSIEXEC solution I already advised you about and call it from a FILE.RUN command.

    As for CR11 I have no idea. If it came with a MSI installer then use MSIEXEC to uninstall it.

    John

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

    Star Is it the File.Delete action....??

    I used this Action for installing my MSI file being embedded into my SF7 project....

    File.Run(SessionVar.Expand("%SystemFolder%\\msiexe c.exe"), "/i \""..SessionVar.Expand("%TempLaunchFolder%\\Mer ge Modules.MSI").."\"","", SW_SHOWNORMAL, true);
    .
    .
    .
    .
    Now, should i use the DELETE action to remove it, when SF7 uninstalls my normal s/w.....???

    File.Delete(SessionVar.Expand("%SystemFolder%\\msi exec.exe"), "/i \""..SessionVar.Expand("%TempLaunchFolder%\\Mer ge Modules.MSI").."\"","", SW_SHOWNORMAL, true);

    Awaiting reply eagerly....

  6. #6
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    If you are trying to delete just the MSI file then a normal FILE.DELETE will do it without the requirement to run MSIEXEC.

    But if you are trying to uninstall the software installed by the MSI then you need to do another FILE.RUN but with /x instead of /i as the parameter to MSIEXEC. Try typing MSIEXEC /? at a command prompt for list of valid commands.

    John

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

    Star The bubble has switched direction as i wanted it to...

    Please read very carefully, then u'll get my point...

    With ur reply, now this issue is bubbled up with a new angle.

    Lets get the deletion conecpt out of this case. I dont wanna delete the file. But i want to properly uninstall it...meaning all its related files will get removed.

    Yesterday, i noticed that if i uninstall it manually, by dbl clickking the the same .msi file, then it pops up a dialog box. This dialog box detects that the msi file is already installed, so it provides a couple of radio button options to REPAIR INSTALL, MODIFY INSTALL or UNNISTALL. I dont want to provide the user this dialog box becoz it can lead to some complications in the event of the re-installation of my s/w.

    NOTE: The .msi file contains the inbuilt Word Viewer 2003.

    For Example: If the user, supposedly, has installed my s/w (made with SF7 and containing the extra .msi file) already on his PC..once. And he does not remember that or whatever...hence he installs my s/w again, then what will happen is that, since this .msi file was already installed before, and is again being re-installed, then he will get a pop-up box with those 3 options that i have stated above (in CAPS)...now he gets confused...and does not know what to do..with so many options.
    So what i did to make the installation process simple...is that i used the ORCA tool from the Windows SDK package and deleted some tables which giev these pop-up boxes that have options.
    So what happens now is that, if a re-installation event occurs by chance, then the .msi file is forcefully installed everytime (without those 3 options)..thus making the end-user's installation xperience simple.

    But, i want to uninstall the s/w along with that embedded .msi file, as a good practice of removing left over debris. And the only way i found to a successfull uninstallation of that .msi file was by clicking the REMOVE button of this .msi item in the Windows Add/Remove Programs tool. This way, no pop-up happens, and the .msi file is simply & successfully uninstalled...but this is a manual process...
    Can i incorporate this command/concept into SF7, so that it triggers the REMOVE button of this .msi item in the Windows Add/Remove Programs tool
    for an automated uninstall of this .msi embedded file ???

    I hope u could understand....my explanation ??
    Awaiting ur vital replies....
    Last edited by intellogo; 04-02-2007 at 10:08 AM.

  8. #8
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Have you actually tried using msiexec /x nameofmsi.msi /quiet within a FILE.RUN statement (or even manually)as described in my earlier post where I pointed you to the Microsoft Product Documentation article?

    http://www.microsoft.com/resources/d....mspx?mfr=true

    I understand what you are trying to do but that is what MSIEXEC is designed to do and normally works OK without prompting the user to do anything.

    The same procedures can be used to reinstall an application without user intervention as well (by use of the /quiet parameter) and not having to use ORCA at all.

    John

  9. #9
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    try this

    1. Look in this registry key for the installed programs {GUID}

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall

    2. Use msiexec /x{GUID} /q[bn+-]

    GUID is the package ID of the software.

    [bn-+] are optional parameters that may be used.

    b = basic dialog (Progress only)
    n = silent
    + = cancel button (default option)
    - = no cancel button

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

    Star The name is changeing everytime....

    JXBurns this is to u..
    This issue relates to the non-ORCA edited file...meaning actual stuff...and to test the CLI things...before i use it in SF7.

    I have been trying the uninstall CLI stuff...
    and it seems to work....but see...

    My .msi file is named as "Merge Modules.msi", which was made with
    Microsoft Visual Studio Installer tool.
    When i am installing it then i have to browse a path to install it. Normally i dont change this and it states that it will get installed at path..."C:\Program Files\Merge Modules".

    But after i have installed it, There is no sub-folder as "Merge Modules" in the Program Files folder. And at the same time it appears as an item "Merge Modules" in the Windows Control Panel Add Remove list.

    But when i do a registry search, then i get to know that it is being stored in the path...."C:\WINDOWS\Installer" with a file name as xxxxxx.msi.
    Now if i uninstall this file and install it again, then it stores as yyyyyy.msi. So everytime i install it, it is stored with a different name in the path...."C:\WINDOWS\Installer".
    .
    .
    Now with reference to ur cli syntax....

    u have given me this syntax: msiexec /x nameofmsi.msi /quiet
    Ur syntax is working perfectly. But if i have to put this into SF7, with the same File.RUN code as i showed u earlier, then how do i put the correct file name for the part..."nameofmsi.msi"..becoz this is changing everytime for every install.

    I have attached 2 images with this post, to show u the different names that are bieng taken up by installing this .msi file:
    ================================
    image 1: "first instance of install.jpg"
    image 2: "second instance of install.jpg"
    ================================

    Awaiting ur informative and progressive response....
    Attached Images

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

    Grin Removing the CROSS and CANCEL button....

    jxburns and jcuster..this is to u ...

    Do u know by means of orca or any equivalent tool, how can I delete the CANCEL button and he CROSS (on window top) that appears duing the installation progress of any .MSI file ??

    This would be also extremely helpfule..thanks in advance for u both guys to spare some valueable time for me to help me solve my issues.
    Awaiting status....

  12. #12
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    Would it be an Idea to

    Would it be an Idea to use the .MSI as a Primer file?

    Then just copy it to where it you need it?

    Then You could use the file.run?

    I noticed in both of those pictures the MSI showed the same Package GUID.

    After you are sure that the MSI has completed then do a File.search to find all the 1c5210a.MSI files. Delete all the found entries.

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

    Star I tried this....

    jcuster..

    I am also noticing that the GUID is same for every install instance...
    Then probably i could use it in SF7.

    I did a full PC search and found that its getting installed only in that Installer folder and no where else.


    see...i have embedded this .msi file into SF7 installer setup.exe as a Primer file, so that it gets installed auto at the destination pc, before any of my remaining s/w files get installed. Becoz this .msi file gives support for CR 11 (Crystal Report 11 reporting toolkit) in my project.

    So, now can u tell me what is the exact syntax to be used in the Action: POST-UNINSTALL to uninstall that .MSI file ??

    I have used this code and also get an error msg for which i have attached a pic again...."error msg.jpg":
    ================================================== =====
    File.Run(SessionVar.Expand("%SystemFolder%\\msiexe c.exe"), "/i \""..SessionVar.Expand("%C:\WINDOWS\Installer%\\ms iexec /x{BD558A59-CCEB-4F19-9E17-96124D11F75C} /passive").."\"","", SW_SHOWNORMAL, true);
    ================================================== =====


    this cli comand works fine in the command prompt window but not in SF7:
    ----------------------------------------------------------------------
    msiexec /x{BD558A59-CCEB-4F19-9E17-96124D11F75C} /passive

    Awaiting ur help eagerly...and is it possible to get in touch with u now in YAHOO messenger ...??
    Attached Images
    Last edited by intellogo; 04-02-2007 at 01:51 PM.

  14. #14
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Try putting the whole command in the first parameter something like this:

    Code:
    File.Run(SessionVar.Expand("%SystemFolder%\\msiexec.exe") .. " /x{BD558A59-CCEB-4F19-9E17-96124D11F75C} /passive","","", SW_SHOWNORMAL, true);
    John

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

    Star And additional question....

    JXBurns buddy,

    I am trying that thing out..and will let u know after 8 hrs...coz its midnite now..

    Do u know by means of orca or any equivalent tool, how can I delete the CANCEL button and the CROSS (on window top) that appears during the installation progress of any .MSI file ??

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Shortcut Folders Not Deleted by Uninstall
    By csd214 in forum Setup Factory 7.0
    Replies: 2
    Last Post: 10-03-2005, 12:17 PM
  2. Uninstall Data – Questions and Bugs (?)
    By csd214 in forum Setup Factory 7.0
    Replies: 5
    Last Post: 06-21-2005, 11:05 AM
  3. Uninstall Support
    By csd214 in forum Setup Factory 6.0
    Replies: 0
    Last Post: 02-10-2004, 07:58 AM
  4. HOWTO: Include Uninstall Support
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-26-2002, 02:33 PM

Posting Permissions

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