Reply to Thread

Post a reply to the thread: Check if a program is installed before running installation

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 09-09-2014, 08:03 AM
    linder

    Re: Check if a program is installed before running installation

    You are very welcome

    Friedrich
  • 09-09-2014, 07:50 AM
    LiquidIce

    Re: Check if a program is installed before running installation

    Hello Friedrich,

    I took your base code and modified it to my taste and it works perfectly, i'll be sure to use this methodology in the future.

    Thank you very much.

    Alejandro.
  • 09-09-2014, 07:04 AM
    linder

    Re: Check if a program is installed before running installation

    Alejandro,

    Okay, I have developed two different methods for you (very quick-and-dirty -- you can fine tune it with check boxes, custom messages, uninstall actions, etc.). It's just to demonstrate on how to do it. BTW, there are different methods available on how to detect an installed product. The recommended way is to check the Product GUID. I have used your .exe detection method here.

    http://www.lindersoft.com/projects/GoogleDriveDemo.zip


    1. Offline Installation (recommended method)

    This can be used for a silent unattended installation.

    https://support.google.com/a/answer/2490101?hl=en

    Download the file "gsync_enterprise.msi" and copy it into the folder where the "GoogleDrive_msi.sb8" project file is located in.

    https://dl.google.com/drive/gsync_enterprise.msi

    Then compile and run GoogleDrive_msi.sb8.

    2. Online Installation

    Google does NOT support a silent unattended installation.

    Download the Google Drive installer and copy your "googledrivesync.exe" into the folder where your "GoogleDrive.sb8" project file is located in.

    Then compile and run GoogleDrive.sb8.


    Hope this helps a bit.

    Friedrich
  • 09-09-2014, 05:12 AM
    linder

    Re: Check if a program is installed before running installation

    Hi Alejandro,

    Aha, okay. This is the wrong way to handle it. Your deployment strategy is simply not correct. I'll try to develop a quick-and-dirty demo for you.

    Friedrich
  • 09-09-2014, 04:53 AM
    LiquidIce

    Re: Check if a program is installed before running installation

    Hello Friedrich,

    What my app does is: Check if Google Drive is installed in this computer and is currently running or the file/folder exists. IF it does, then I don't want to install it. IF it doesn't, I want it to run the googledrivesync.exe which is the installer that Google gives you for Google Drive, which I will rename to InstallGDrive.exe
    I don't want InstallGDrive.exe to be installed inside my application's folder, I want it to install in the default folder it has to go to(C:\ProgFiles\Google\Drive\googledrivesync.exe). googledrivesync.exe is what runs the application Google Drive, not the installer itself, I have renamed the installer to InstallGDrive.exe
  • 09-09-2014, 04:37 AM
    linder

    Re: Check if a program is installed before running installation

    Alejandro,

    I am still not sure what you are trying to accomplish, but I think you would like to do something similar to the attached?

    Friedrich
  • 09-09-2014, 04:25 AM
    linder

    Re: Check if a program is installed before running installation

    Alejandro,

    You have set the %_SB_INSTALLDIR% folder to %PROGRAMFILESDIR%\UserZoom\[PRODUCTNAME]. At runtime, this will resolve to:

    C:\Program Files (x86)\UserZoom\UserZoom

    But you perform the following check:

    If %PROGRAMFILESDIR%\GOOGLE\DRIVE\GOOGLEDRIVESYNC.EXE File or Folder exists Then

    So it will ALWAYS install your "googledrivesync.exe" because you NEVER install to:

    C:\Program Files (x86)\GOOGLE\DRIVE

    Instead, you install:

    C:\Program Files (x86)\UserZoom\UserZoom\googledrivesync.exe

    In other words, your "If Statement" is always FALSE and the "Else Statement" is executed. You have a minor folder issue here.

    Does this help?

    Friedrich
  • 09-09-2014, 03:41 AM
    LiquidIce

    Re: Check if a program is installed before running installation

    Hello Friedrich,

    I sent the email to the account you indicated.

    Thank you.

    Alejandro.
  • 09-09-2014, 01:24 AM
    linder

    Re: Check if a program is installed before running installation

    Hi Alejandro,

    if you are interested, you can send the .sb8 file to support [at] lindersoft [dot] com and we'll review the project for you.

    Friedrich
  • 09-09-2014, 01:20 AM
    LiquidIce

    Re: Check if a program is installed before running installation

    Hello Friedrich,

    I tried sending you a private message through the forums but it says that you do not allow recieving them, how can i send it to you?

    Regards,

    Alejandro
This thread has more than 10 replies. Click here to review the whole thread.

Posting Permissions

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