[wix-users] Chrome enterprise deployment

Carlos Sosa carlos.sosa.us at outlook.com
Wed Dec 13 23:21:06 PST 2017


After a long day I think I got to understand more things however, I can not get it to do what I need. I think I can pass the /install using the variable (havent gotten to that yet, it install with out passing it for now)
But the mayor issue is that I would like to NOT INSTALL chrome if its already installed, for that I'm trying to use DirectorySearch.... because I couldn't find a reference to a registry entry for Chrome. There are some entries in the registry but look like GUIs...
The problam is that the Directory search evaluates to THE PATH if dir found not true or false, and if it is not found doesn't get set to anything I just get the "didn't found path..."

What can I do?
Is there a better way to check if Chrome is installed?
Any help is appreciated, I already tried really hard to figure it out.

Best.

Log
******************
Setting string variable 'HelloWorld2' to value 'C:\Program Files (x86)\Google\CrashReports'
[06D4:0638][2017-12-13T23:06:10]i000: Directory search: wdsEF92FB2D61F4B39D12FED7A7A18D428E, did not find path: C:\Program Files (x86)\Google\Chrome\Application, reason: 0x80070003
[06D4:0638][2017-12-13T23:06:10]i102:
******************

<!--To test later
<Variable Name="MyVar" Value="/install"/>-->

    <!--If dir not found I need to install Chrome-->
    <util:DirectorySearch Variable="HelloWorld" Path= "[ProgramFilesFolder]Google\Chrome\Application"/>
   <!--Another test, this dir is actually present when installing or unistalling Chrome, but if found it evaluates to the actual Path not true or false-->
    <util:DirectorySearch Variable="HelloWorld2" Path= "[ProgramFilesFolder]Google\CrashReports"/>
    
      <?if HelloWorld2 = "C:\Program Files (x86)\Google\CrashReports" ?>
      <Variable Name="VS2013Installed" Value="true"/>
    <?else ?>
      <Variable Name="VS2013Installed" Value="false"/>
    <?endif?>

      
      <Chain>
        
       <MsiPackage   
                 SourceFile = "$(var.ProjectDir)Lib\googlechromestandaloneenterprise64.msi" 
                 InstallCondition="HelloWorld2 = "false""
                 Id='Chrome'
                 Vital='no'
                 Description='Installing Google Chrome'
                 DisplayName='Google Chrome'>
       </MsiPackage>

    <Chain/>



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Carlos Sosa via wix-users
Sent: Wednesday, December 13, 2017 2:26 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Carlos Sosa <carlos.sosa.us at outlook.com>
Subject: Re: [wix-users] Chrome enterprise deployment


Thank you, I'm testing it in a few.

    <Chain>
       <MsiPackage SourceFile = "$(var.ProjectDir)Lib\googlechromestandaloneenterprise64.msi" 
                 Id='Chrome'
                 Vital='no'
                 DisplayInternalUI='yes'
                 Description='Installing Google Chrome'
                 DisplayName='Google Chrome'
                 ForcePerMachine='yes' >
         <MsiProperty Name="string" Value="/s" />
      </MsiPackage>


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nir Bar via wix-users
Sent: Wednesday, December 13, 2017 12:38 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Nir Bar <nir.bar at panel-sw.com>
Subject: Re: [wix-users] Chrome enterprise deployment

Use MsiProperty elements nested inside the MsiPackage element.

Sent from my ASUS

-------- Original Message --------
From:Carlos Sosa via wix-users <wix-users at lists.wixtoolset.org> Sent:Wed, 13 Dec 2017 21:21:47 +0200 To:WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org> Cc:Carlos Sosa <carlos.sosa.us at outlook.com> Subject:[wix-users] Chrome enterprise deployment

>
>Hello, I'm trying to install Chrome with in my bundle, the question I have is that google provides an msi that has switches but If I use the msi component on the bundle it doesn't has options to includes/pass these switches. The .exe does.
>M'I missing something? I'm trying to specified the parameters during install, I'm troubleshooting some errors during installation of Chrome.
>Any advice is appreciated.
>
><MsiPackage SourceFile = "$(var.ProjectDir)Lib\googlechromestandaloneenterprise64.msi"
>                 Id='Chrome'
>                 Vital='no'
>                 DisplayInternalUI='yes'
>                 Description='Installing Google Chrome'
>                 DisplayName='Google Chrome'
>                 ForcePerMachine='yes'></MsiPackage>
>
>Or
>
><ExePackage Id="Chrome"
>                  Compressed="yes"
>                  PerMachine="yes"
>                  Vital="no"
>                  Permanent="yes"
>                  InstallCommand=""
>                  UninstallCommand=""
>                  RepairCommand=""
>                  
>SourceFile="$(var.ProjectDir)Lib\ChromeStandaloneSetup64.exe"/>
>
>____________________________________________________________________
>WiX Toolset Users Mailing List provided by FireGiant 
>http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list