[WiX-users] Install Window Service Requirement

2015-05-14 Thread Chetan Rajakumar
Hi,

I have an requirement that says to Add 'MyWindowService' to Services.msc

1.  Window Service Name should be "My Project Name Service"  --> This is 
done.

2.  Run as an account defined by the UI Dialog - Username & Password (I 
have an UI dialog where I enter UserId and Password)  --> This is done.

Please help me out in achieving the below requirements,

1.  Grant Service write to account (policy)

2.  Add account to local admin

3.  Open port on install

4.  Close port on uninstall

5.  Set the service base addresses to current machine name

6.  Validate drive letter on install - prefer 
D:\WindowsServices\ revert to C drive if D is not available.


1.  Uninstall remove all log files --> For this requirement I tried the 
below options but it did not work:



  
REMOVE="ALL"
  


ExeCommand="cmd /C "rmdir /s /q ".\[folder name]"""


Thanks in advance.

Regards,
Chetan.

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installing VSTO as pre-requisites from Bundle.wxs Failed

2014-09-17 Thread Chetan Rajakumar
Thank you very much Licha. 

-Original Message-
From: Liz [mailto:chang@gmail.com] 
Sent: Wednesday, September 17, 2014 11:57 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Installing VSTO as pre-requisites from Bundle.wxs 
Failed

This is the fwlink that always points to the latest VSTO 2010 download page:
http://go.microsoft.com/fwlink/?LinkId=140384

After you click Download and lands on the page after, you can find the direct 
download link at "If your download does not start after 30 seconds, Click here"



On Wed, Sep 17, 2014 at 5:02 AM, Chetan Rajakumar < 
chetan_rajaku...@infosys.com> wrote:

> Hi Licha,
>
> Thanks for the reply. Can you please let me know how can I get the 
> permanent link?
>
> Regards,
> Chetan.
> -Original Message-
> From: Liz [mailto:chang@gmail.com]
> Sent: Wednesday, September 17, 2014 3:57 AM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Installing VSTO as pre-requisites from 
> Bundle.wxs Failed
>
> The VSTO redist package you downloaded via the fwlink is failing 
> signature verification because it was updated last week, which most 
> likely no longer matches with the vstor_redist.exe you used to compile your 
> bootstrapper.
>
> Updating the redist source file to the latest version should resolve 
> this issue. And you might want to consider using a permanent link going 
> forward.
>
> On Mon, Sep 15, 2014 at 4:08 AM, Chetan Rajakumar < 
> chetan_rajaku...@infosys.com> wrote:
>
> > Hi,Hi,
> > I've created a WIX (v3.7.0.0) installer for our VSTO application on 
> > Win 7
> > 64 bit machine. Which do custom installation successfully. And I've 
> > also create Bundle.wxs file for installing the prerequisites for 
> > VSTO, like .Net Framework 4.0 client profile and VSTO 4.0. runtime.
> > When I run our exe file it search for VSTO and start download VSTO 
> > from http://go.microsoft.com/fwlink/?LinkId=158917. but gives the 
> > below error
> > [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> > find expected public key in certificate chain.
> > [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> > verify expected payload against actual certificate chain.
> > [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> > verify signature of payload: VSTORuntime
> > [0BE8:06F0][2013-08-06T10:49:18]e310: Failed to verify payload:
> > VSTORuntime at path: C:\ProgramData\Package 
> > Cache\.unverified\VSTORuntime,
> > error: 0x80070490. Deleting file.
> > [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> > cache
> > payload: VSTORuntime
> > [15CC:0568][2013-08-06T10:49:18]e314: Failed to cache payload:
> > VSTORuntime from working path:
> > C:\Users\UA17C9~1.JAI\AppData\Local\Temp\{f3bea074-7c76-4831-b8ed-22
> > 02
> > 1127ba0d}\VSTORuntime,
> > error: 0x80070490.
> > [15CC:0568][2013-08-06T10:49:18]e349: Application requested retry of
> > payload: VSTORuntime, encountered error: 0x80070490. Retrying...
> > Installer do above same step for 3 times and then finally show error 
> > message and stop the installation.
> > Don't know why this is happening. And we need to install VSTO 4.0 
> > Runtime automatically. When I run "vstor_redist.exe" manually, it 
> > runs
> successfully.
> > * Code is as below:
> > Bundle.wxs
> >  > Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"
> >   IconSourceFile="$(var.ResourceFiles)\Icon.ico">
> >> Id="WixStandardBootstrapperApplication.RtfLicense">
> >   > LogoFile="$(var.ResourceFiles)\BootStrap Logo.bmp"
> SuppressOptionsUI="yes"
> > LicenseFile="Confidential.rtf" />
> >   
> >> Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4\"
> Value="Version"
> > Variable="VSTORVersionV4"/>
> >> Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4M\"
> > Value="VSTORFeature_CLR40" Variable="VSTORFeature"/>
> >> Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4R\"
> > Value="Version" Variable="VSTORVersionV4R"/>
> >> Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client"
> Value="Install"
> > Variable="DotNetInstall"/>
> >> Key="SOFTWARE\M

Re: [WiX-users] Installing VSTO as pre-requisites from Bundle.wxs Failed

2014-09-17 Thread Chetan Rajakumar
Hi Licha,

Thanks for the reply. Can you please let me know how can I get the permanent 
link?

Regards,
Chetan.
-Original Message-
From: Liz [mailto:chang@gmail.com] 
Sent: Wednesday, September 17, 2014 3:57 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Installing VSTO as pre-requisites from Bundle.wxs 
Failed

The VSTO redist package you downloaded via the fwlink is failing signature 
verification because it was updated last week, which most likely no longer 
matches with the vstor_redist.exe you used to compile your bootstrapper.

Updating the redist source file to the latest version should resolve this 
issue. And you might want to consider using a permanent link going forward.

On Mon, Sep 15, 2014 at 4:08 AM, Chetan Rajakumar < 
chetan_rajaku...@infosys.com> wrote:

> Hi,Hi,
> I've created a WIX (v3.7.0.0) installer for our VSTO application on 
> Win 7
> 64 bit machine. Which do custom installation successfully. And I've 
> also create Bundle.wxs file for installing the prerequisites for VSTO, 
> like .Net Framework 4.0 client profile and VSTO 4.0. runtime.
> When I run our exe file it search for VSTO and start download VSTO 
> from http://go.microsoft.com/fwlink/?LinkId=158917. but gives the 
> below error
> [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to find 
> expected public key in certificate chain.
> [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> verify expected payload against actual certificate chain.
> [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> verify signature of payload: VSTORuntime
> [0BE8:06F0][2013-08-06T10:49:18]e310: Failed to verify payload:
> VSTORuntime at path: C:\ProgramData\Package 
> Cache\.unverified\VSTORuntime,
> error: 0x80070490. Deleting file.
> [0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to 
> cache
> payload: VSTORuntime
> [15CC:0568][2013-08-06T10:49:18]e314: Failed to cache payload: 
> VSTORuntime from working path:
> C:\Users\UA17C9~1.JAI\AppData\Local\Temp\{f3bea074-7c76-4831-b8ed-2202
> 1127ba0d}\VSTORuntime,
> error: 0x80070490.
> [15CC:0568][2013-08-06T10:49:18]e349: Application requested retry of
> payload: VSTORuntime, encountered error: 0x80070490. Retrying...
> Installer do above same step for 3 times and then finally show error 
> message and stop the installation.
> Don't know why this is happening. And we need to install VSTO 4.0 
> Runtime automatically. When I run "vstor_redist.exe" manually, it runs 
> successfully.
> * Code is as below:
> Bundle.wxs
>  Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"
>   IconSourceFile="$(var.ResourceFiles)\Icon.ico">
>Id="WixStandardBootstrapperApplication.RtfLicense">
>   LogoFile="$(var.ResourceFiles)\BootStrap Logo.bmp" SuppressOptionsUI="yes"
> LicenseFile="Confidential.rtf" />
>   
>Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4\" Value="Version"
> Variable="VSTORVersionV4"/>
>Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4M\"
> Value="VSTORFeature_CLR40" Variable="VSTORFeature"/>
>Key="SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4R\"
> Value="Version" Variable="VSTORVersionV4R"/>
>Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client" Value="Install"
> Variable="DotNetInstall"/>
>Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Client" Value="Version"
> Variable="DotNetVersion"/>
>
>   
>   SourceFile="$(var.PreReqPath)\DotNetFX40Client\dotNetFx40_Client_x86_x64.exe"
> PerMachine="yes" Cache="no"
>   Compressed="no"
>   DownloadUrl="
> http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-4
> 84C74B5124B/dotNetFx40_Client_setup.exe
> "
>   Permanent="yes"
>   InstallCommand="/q /norestart"
>   DetectCondition="NOT DotNetInstall"
>   InstallCondition="NOT 
> DotNetInstall OR NOT (DotNetVersion >=v4.0.30319)" />
>   SourceFile="$(var.PreReqPath)\VSTOR40\vstor_redist.exe" Permanent="yes"
> Vi

[WiX-users] Installing VSTO as pre-requisites from Bundle.wxs Failed

2014-09-15 Thread Chetan Rajakumar
Hi,Hi,
I've created a WIX (v3.7.0.0) installer for our VSTO application on Win 7 64 
bit machine. Which do custom installation successfully. And I've also create 
Bundle.wxs file for installing the prerequisites for VSTO, like .Net Framework 
4.0 client profile and VSTO 4.0. runtime.
When I run our exe file it search for VSTO and start download VSTO from 
http://go.microsoft.com/fwlink/?LinkId=158917. but gives the below error
[0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to find expected 
public key in certificate chain.
[0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to verify 
expected payload against actual certificate chain.
[0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to verify 
signature of payload: VSTORuntime
[0BE8:06F0][2013-08-06T10:49:18]e310: Failed to verify payload: VSTORuntime at 
path: C:\ProgramData\Package Cache\.unverified\VSTORuntime, error: 0x80070490. 
Deleting file.
[0BE8:06F0][2013-08-06T10:49:18]e000: Error 0x80070490: Failed to cache 
payload: VSTORuntime
[15CC:0568][2013-08-06T10:49:18]e314: Failed to cache payload: VSTORuntime from 
working path: 
C:\Users\UA17C9~1.JAI\AppData\Local\Temp\{f3bea074-7c76-4831-b8ed-22021127ba0d}\VSTORuntime,
 error: 0x80070490.
[15CC:0568][2013-08-06T10:49:18]e349: Application requested retry of payload: 
VSTORuntime, encountered error: 0x80070490. Retrying...
Installer do above same step for 3 times and then finally show error message 
and stop the installation.
Don't know why this is happening. And we need to install VSTO 4.0 Runtime 
automatically. When I run "vstor_redist.exe" manually, it runs successfully.
* Code is as below:
Bundle.wxs

  
 
  
  
  
  
  
  

  
 http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-484C74B5124B/dotNetFx40_Client_setup.exe";
  Permanent="yes"
  InstallCommand="/q /norestart"
  DetectCondition="NOT DotNetInstall"
  InstallCondition="NOT DotNetInstall OR 
NOT (DotNetVersion >=v4.0.30319)" />
 http://go.microsoft.com/fwlink/?LinkId=158917";
  PerMachine="yes"
  InstallCommand="/q /norestart"
  DetectCondition="VSTORFeature"
  InstallCondition="NOT VSTORFeature OR NOT 
(VSTORVersionV4R >=v10.0.40303) OR NOT (VSTORVersionV4 >=v10.0.21022) "/>
 
  
   


Any help appreciated.

Thanks & Regards,
Chetan Rajakumar

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Read a value from a text file and use it in WIX source file

2014-02-19 Thread Chetan Rajakumar
Hi Walter,

I am not able to accomplish this, please help me out. I am doing the below 
Steps:

1. From C# code I am setting environment variable as shown below, 
System.Environment.SetEnvironmentVariable("DRAFTVERSION", "1.2.3.4");

2. In Installer Project's Properties under Pre-Build event Command line, I have 
written the below line.
"$(WiX)\bin\candle.exe" -dSvnVersion=%DRAFTVERSION% -out 
"$(ProjectDir)\Product.wxs"

3. In Product.wxs


I am getting below error.
Undefined Preprocessor Variable.

Please let me know if I have missed something.


Thanks and Regards,
Chetan.

-Original Message-
From: Suvrajyoti Panda [mailto:suvrajyo...@contata.co.in] 
Sent: Friday, February 14, 2014 11:34 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Read a value from a text file and use it in WIX source 
file

Thanks Walter, that works for me  :)

On 12-02-2014 21:35, Walter Dexter wrote:
> Sorry I forgot about this. Here's what I'm doing. I'm sure someone 
> more experienced will have a much better way, but this works for me.
>
> First, in my "build.cmd" file, set "svt" envrironment variable to the 
> contents of the "svnversion.txt" file:
>
> set /p svt=
>
> Then, pass it to "candle" on the command line:
>
> candle -dSvnVersion=%svt% main.wxs
>
>
> In "main.wxs" you can then use it as a variable. For example:
>
> 
>
>
>
> On Tue, Feb 11, 2014 at 9:34 AM, Suvrajyoti Panda 
> > wrote:
>> Thanks Walter, that would be really helpful if you can give me an example.
>>
>> Regards,
>> Suvra Jyoti
>>
>> On 11-02-2014 19:53, Walter Dexter wrote:
>>> It may not be the most elegant way, but I'm doing the same thing by
>> passing
>>> the contents of the file (first line anyway) as a command line 
>>> argument
>> to
>>> the linker.
>>>
>>> I use a .cmd file to run the WiX ci mpile and link so its just a bit 
>>> of batch file processing.
>>>
>>> If you need an example I can get it for you once I get to work. Let 
>>> me
>> know.
>>> On Feb 11, 2014 12:40 AM, "Suvrajyoti Panda" 
>>> 
>>> wrote:
>>>
 Hi All,

 I have a requirement wherein in i need to read a value from a text 
 file located at  D:\Project\ESI\Code\trunk\lastVersion.txt. This 
 file contains a single  line as below:

 6.0.0 Build 3280

 This 6.0.0 is basically the "version" . Now i want to read this 
 value of version and use it in the name of the product in the WIX 
 source file as
 below:

 >>> Id='5A1581BE-27C3-46A1-8699-4F1D642C97E0'
 UpgradeCode='C54B7D5D-0E66-43E8-A770-C9750693F057'
Language='1033' Codepage='1252' Version='1.0.0'
 Manufacturer='$(var.ManufacturerName)'>

 Instead of the "1.0" in the "Name" attribute i want to use the 
 value of "6.0.0" that is there in the text file mentioned above.

 Please let me know how can i go about solving this issue.

 Regards,
 Suvra Jyoti


>> -
>> -
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.


>> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg
>> .clktrk
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

>> -
>> -
>>> Android apps run on BlackBerry 10
>>> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
>>> Now with support for Jelly Bean, Bluetooth, Mapview and more.
>>> Get your Android app in front of a whole new audience.  Start now.
>>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg
>> .clktrk
>>> ___
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>>
>>
>>
>> -
>> -
>> Android apps run on BlackBerry 10
>> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
>> Now with support for Jelly Bean, Bluetooth, Mapview and more.
>> Get your Android app in front of a whole new audience.  Start now.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg
>> .clktrk ___
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
> --
> 
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in 

Re: [WiX-users] Set Product version in Product.wxs file

2014-02-10 Thread Chetan Rajakumar
Hi Dave,

Can you please let me know what all changes you are making for this.
Please let me know what code you are writing in python script, Is this Script 
placed in Wix Installer project?
How you are setting command line parameters which u pass to candle/etc.

Thanks and Regards,
Chetan.

-Original Message-
From: David Connet [mailto:d...@agilityrecordbook.com] 
Sent: Monday, February 10, 2014 8:07 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Set Product version in Product.wxs file

On 2/10/2014 5:48 AM, Chetan Rajakumar wrote:
> Hi All,
>
> Below is my requirement:
> I have a Version.txt file kept under WixInstaller project and I have below 
> text in Version.txt:
> BuildVersion=1.2.3.4
> Now I have to read the above BuildVersion from the Version.txt and Update the 
> value of Product Version in Product.wxs file.
> Something like below:
>  Version="$Read Build version from Version.txt" 
> Manufacturer="MyManufacturer" 
> UpgradeCode="335569EF-2DF3-4CD7-8EDA-59996E345553">
>
> Please help me out to achieve this requirement, Thanks in advance.

I do something similar. What I did was use a python script to parse the file 
and set command line parameters which I pass to candle/etc.

Dave

--
Managing the Performance of Cloud-Based Applications Take advantage of what the 
Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Set Product version in Product.wxs file

2014-02-10 Thread Chetan Rajakumar
Hi Brian,

I am doing this but I feel this is not the way to make the build automated 
because instead of changing the Product version in Product.wxs we have to 
change the assembly version of actual exe OR if we make the assembly version of 
actual exe to increment automatically then everytime we build the solution then 
this assembly version will gets changed.

Thanks and Regards,
Chetan.
-Original Message-
From: Brian Enderle [mailto:bria...@gmail.com] 
Sent: Monday, February 10, 2014 8:22 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Set Product version in Product.wxs file

I know this doesn't do exactly what you want but we use the product version of 
the actual EXE to assign the product version to the MSI.  THis way we only need 
to update the project version and the installer version is automatically 
updated.  Be sure to replace the items in <> with your info.

FYI, $(SolutionDir) and $(Configuration) include a trailing '\' so don't add 
another one.

Add the following to the WiX project file:

  
  

  


  


  


  


  

  


Then in the Product.wxs you can use:


  
 "?> "?> "?>

http://schemas.microsoft.com/wix/2006/wi";
  xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>

  


Brian

If you can't explain it simply, you don't understand it well enough.  - Albert 
Einstein


On Mon, Feb 10, 2014 at 8:48 AM, Chetan Rajakumar < 
chetan_rajaku...@infosys.com> wrote:

> Hi All,
>
> Below is my requirement:
> I have a Version.txt file kept under WixInstaller project and I have 
> below text in Version.txt:
> BuildVersion=1.2.3.4
> Now I have to read the above BuildVersion from the Version.txt and 
> Update the value of Product Version in Product.wxs file.
> Something like below:
> Version="$Read Build version from Version.txt"
> Manufacturer="MyManufacturer"
> UpgradeCode="335569EF-2DF3-4CD7-8EDA-59996E345553">
>
> Please help me out to achieve this requirement, Thanks in advance.
>
>
> Regards,
> Chetan.
>
>  CAUTION - Disclaimer * This e-mail 
> contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for 
> the use of the addressee(s). If you are not the intended recipient, 
> please notify the sender by e-mail and delete the original message. 
> Further, you are not to copy, disclose, or distribute this e-mail or 
> its contents to any other person and any such actions are unlawful. 
> This e-mail may contain viruses. Infosys has taken every reasonable 
> precaution to minimize this risk, but is not liable for any damage you 
> may sustain as a result of any virus in this e-mail. You should carry 
> out your own virus checks before opening the e-mail or attachment. 
> Infosys reserves the right to monitor and review the content of all 
> messages sent to or from this e-mail address. Messages sent to or from 
> this e-mail address may be stored on the Infosys e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***
>
>
> --
>  Managing the Performance of Cloud-Based Applications Take 
> advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.
> clktrk ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
--
Managing the Performance of Cloud-Based Applications Take advantage of what the 
Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Set Product version in Product.wxs file

2014-02-10 Thread Chetan Rajakumar
Hi All,

Below is my requirement:
I have a Version.txt file kept under WixInstaller project and I have below text 
in Version.txt:
BuildVersion=1.2.3.4
Now I have to read the above BuildVersion from the Version.txt and Update the 
value of Product Version in Product.wxs file.
Something like below:


Please help me out to achieve this requirement, Thanks in advance.


Regards,
Chetan.

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users