Re: [WiX-users] Queries on Upgrade

2014-04-25 Thread Gabriel Ivanes
Search for the productcode.
-- 
Sincerely,
Gabriel
--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Queries on Upgrade

2014-04-24 Thread Gabriel Ivanes
Good day,



1. What's your installation context ? User or Machine ?



2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right
property.



3. What's your need ?



Check your msi with [1]InstEd. It's always instructive.



Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit :

Hello,



I am stuck with Upgrade (remove any previous version) issues with WiX.
I

am framing my questions below which I feel might help me if answered.

Thank you for your replies in advance.





1.   Product Id = * and there is a GUID in Upgrade Code. Still

whenever I install my product, there is no entry for Upgrade Code is

found in Registry

(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

OR

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio
n\Uninstall)

rather a new Product Id (a new random GUID) is found as a new registry

key. I have read many blogs and people say that they find a new
registry

key corresponding to Upgrade Code in their registry not Product code.
If

this is the case then how 'Upgrade' is supposed to work?



2.   I have many custom actions. I want a set of custom actions
only

when product is installed for the first time so I have given condition
as

((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run
next

version msi on top of some existing version, these custom actions still

get executed. I did verbose logging and saw that 'Related Products' are

found and yet 'NOT Installed' property condition doesn't seem to work.



3.   Can we have MajorUpgrade and Upgrade in same file while

scheduling RemoveExistingProducts explicitly? I am getting compiler

error if I do so. I know that MajorUpgrade schedules

'RemoveExistingProducts' by default so if I don't schedule

'RemoveExistingProducts' explicitly then will the Upgrade work?



Any idea anyone? Need help desperately.



Aparna Karkare

LT Infotech

OAI-sys[2]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portf
olios/Architecture/Components/index.aspx,

Enterprise Components and Frameworks

Office: 020-6641-6142

Email: [3]akark...@travelers.com[4]mailto:akark...@travelers.com





This communication, including attachments, is confidential, may be

subject to legal privileges, and is intended for the sole use of the

addressee. Any use, duplication, disclosure or dissemination of this

communication, other than by the addressee, is prohibited. If you have

received this communication in error, please notify the sender

immediately and delete or destroy this communication and all copies.



TRVDiscDefault::1201

---
---

Start Your Social Network Today - Download eXo Platform

Build your Enterprise Intranet with eXo Platform Software

Java Based Open Source Intranet - Social, Extensible, Cloud Ready

Get Started Now And Turn Your Intranet Into A Collaboration Platform

[5]http://p.sf.net/sfu/ExoPlatform

___

WiX-users mailing list

[6]WiX-users@lists.sourceforge.net

[7]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. http://www.instedit.com/
2. 
http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/Architecture/Components/index.aspx
3. mailto:akark...@travelers.com
4. mailto:akark...@travelers.com
5. http://p.sf.net/sfu/ExoPlatform
6. mailto:WiX-users@lists.sourceforge.net
7. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Queries on Upgrade

2014-04-24 Thread Gabriel Ivanes
That's why you didn't find it in HKLM. It's published in HKUSERS\{SID
from user which installed the product}.



Le Jeu 24 Avril 2014, à 14:44, Karkare,Aparna a écrit :

Hi Gabriel,



1. InstallScope=perUser



2 and 3 are resolved. I implemented Upgrade and MajorUpgrade both

with AllowSameVersionUpgrades =yes.



Can you please explain about 1st point? Thanks for your reply.



Aparna Karkare

LT Infotech

OAI-sys, Enterprise Components and Frameworks

Office: 020-6641-6142

Email: [1]akark...@travelers.com





-Original Message-

From: Gabriel Ivanes [[2]mailto:g...@fastmail.net]

Sent: Thursday, April 24, 2014 8:00 AM

To: [3]wix-users@lists.sourceforge.net

Subject: Re: [WiX-users] Queries on Upgrade



Good day,







1. What's your installation context ? User or Machine ?







2. Your condition seem ok if UPGRADINGPRODUCTCODE is the right
property.







3. What's your need ?







Check your msi with [1]InstEd. It's always instructive.







Le Jeu 24 Avril 2014, à 12:37, Karkare,Aparna a écrit :



Hello,







I am stuck with Upgrade (remove any previous version) issues with WiX.

I



am framing my questions below which I feel might help me if answered.



Thank you for your replies in advance.











1.   Product Id = * and there is a GUID in Upgrade Code. Still



whenever I install my product, there is no entry for Upgrade Code is



found in Registry



(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall



OR



HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersio

n\Uninstall)



rather a new Product Id (a new random GUID) is found as a new registry



key. I have read many blogs and people say that they find a new
registry



key corresponding to Upgrade Code in their registry not Product code.

If



this is the case then how 'Upgrade' is supposed to work?







2.   I have many custom actions. I want a set of custom actions

only



when product is installed for the first time so I have given condition
as



((NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)) however when I run
next



version msi on top of some existing version, these custom actions still



get executed. I did verbose logging and saw that 'Related Products' are



found and yet 'NOT Installed' property condition doesn't seem to work.







3.   Can we have MajorUpgrade and Upgrade in same file while



scheduling RemoveExistingProducts explicitly? I am getting compiler



error if I do so. I know that MajorUpgrade schedules



'RemoveExistingProducts' by default so if I don't schedule



'RemoveExistingProducts' explicitly then will the Upgrade work?







Any idea anyone? Need help desperately.







Aparna Karkare



LT Infotech



OAI-sys[2][4]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Po
rtf

olios/Architecture/Components/index.aspx,



Enterprise Components and Frameworks



Office: 020-6641-6142



Email:
[3][5]akark...@travelers.com[4][6]mailto:akark...@travelers.com











This communication, including attachments, is confidential, may be



subject to legal privileges, and is intended for the sole use of the



addressee. Any use, duplication, disclosure or dissemination of this



communication, other than by the addressee, is prohibited. If you have



received this communication in error, please notify the sender



immediately and delete or destroy this communication and all copies.







TRVDiscDefault::1201



---

---



Start Your Social Network Today - Download eXo Platform



Build your Enterprise Intranet with eXo Platform Software



Java Based Open Source Intranet - Social, Extensible, Cloud Ready



Get Started Now And Turn Your Intranet Into A Collaboration Platform



[5][7]http://p.sf.net/sfu/ExoPlatform



___



WiX-users mailing list



[6][8]WiX-users@lists.sourceforge.net



[7][9]https://lists.sourceforge.net/lists/listinfo/wix-users







--

Sincerely,

Gabriel



I know no way of judging the future but by the past.

Patrick Henry

You can never plan the future by the past.

Edmund Burke



References



1. [10]http://www.instedit.com/

2.

[11]http://inside.here.travp.net/OperationsSystems/iwcm/IT/Portfolios/A
rchitecture/Components/index.aspx

3. [12]mailto:akark...@travelers.com

4. [13]mailto:akark...@travelers.com

5. [14]http://p.sf.net/sfu/ExoPlatform

6. [15]mailto:WiX-users@lists.sourceforge.net

7. [16]https://lists.sourceforge.net/lists/listinfo/wix-users

---
---

Start Your Social Network Today - Download eXo Platform Build your

Enterprise Intranet with eXo Platform Software Java Based Open Source

Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn
Your

Intranet Into A Collaboration Platform
[17]http://p.sf.net/sfu/ExoPlatform

Re: [WiX-users] Run external Exe on Install

2014-03-21 Thread Gabriel Ivanes
Depending if you want a Bundle :



[1]http://wixtoolset.org/documentation/manual/v3/xsd/wix/exepackage.htm
l



Or an MSI :



[2]http://wixtoolset.org/documentation/manual/v3/xsd/wix/customaction.h
tml





Le Ven 21 Mars 2014, à 17:56, Hoover, Jacob a écrit :

Burn, running an EXE installer (which may contain a MSI installer) is
not

supported.  Create a Bundle, and place the exe installer into your
chain.



[3]http://msdn.microsoft.com/en-us/library/aa368010(v=vs.85).aspx



-Original Message-

From: Joel Palmer [[4]mailto:jpalmer1...@comcast.net]

Sent: Friday, March 21, 2014 11:21 AM

To: [5]wix-users@lists.sourceforge.net

Subject: [WiX-users] Run external Exe on Install



I have a prerequisite that must be run before my installer continues.

Can you give me a code example on:



1.   How to call the executable.  Custom action?  Script?



2.   How to verify that it ran.  Look for a file in a directory?



3.   How to pause the install until it is verified.






Thanks for your help.



---
---

Learn Graph Databases - Download FREE O'Reilly Book Graph Databases
is

the definitive new guide to graph databases and their applications.

Written by three acclaimed leaders in the field, this first edition is

now available. Download your free book today!

[6]http://p.sf.net/sfu/13534_NeoTech

___

WiX-users mailing list

[7]WiX-users@lists.sourceforge.net

[8]https://lists.sourceforge.net/lists/listinfo/wix-users



---
---

Learn Graph Databases - Download FREE O'Reilly Book

Graph Databases is the definitive new guide to graph databases and

their

applications. Written by three acclaimed leaders in the field,

this first edition is now available. Download your free book today!

[9]http://p.sf.net/sfu/13534_NeoTech

___

WiX-users mailing list

[10]WiX-users@lists.sourceforge.net

[11]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. http://wixtoolset.org/documentation/manual/v3/xsd/wix/exepackage.html
2. http://wixtoolset.org/documentation/manual/v3/xsd/wix/customaction.html
3. http://msdn.microsoft.com/en-us/library/aa368010(v=vs.85).aspx
4. mailto:jpalmer1...@comcast.net
5. mailto:wix-users@lists.sourceforge.net
6. http://p.sf.net/sfu/13534_NeoTech
7. mailto:WiX-users@lists.sourceforge.net
8. https://lists.sourceforge.net/lists/listinfo/wix-users
9. http://p.sf.net/sfu/13534_NeoTech
  10. mailto:WiX-users@lists.sourceforge.net
  11. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Burn : MSP and Installcondition

2014-03-18 Thread Gabriel Ivanes
Hi guys,



Here is my problem :



...

 MspPackage Id=Lync_msp_2737155_x64

Compressed=yes

InstallCondition='VersionNT64'​

SourceFile=..\..\Sources\Lync2010\Lync_MSP_4.0
.7577.4356_ALL_X64_W7_R1\Lync_KB2737155_x64.msp

/MspPackage

...





I want it to be installed for x64 platform. But here is the log :

...

 Condition 'VersionNT64' evaluates to true.

...

Planned package: Lync_msp_2737155_x64, state: Absent, default
requested: Present, ba requested: Present, execute: None, rollback:
None, cache: No, uncache: No, dependency: None

..



And finally, it's not installed. Why so ?



Thanks.


--
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Burn : MSP and Installcondition

2014-03-18 Thread Gabriel Ivanes
The main problem is that 2 msi of the same product, x86 and x64,
concerned by these two patchs, have the same productcode...



Then SlipstreamMSP can't work. Futhermore, SlipstreamMSP doesn't work
with Installcondition. (Bug 3897)



So, i made 2 bundles, x86 and x64.



But i can't understand why Installcondition and code below don't work.





Le Mar 18 Mars 2014, à 11:16, Gabriel Ivanes a écrit :

Hi guys,







Here is my problem :







...



MspPackage Id=Lync_msp_2737155_x64



Compressed=yes



InstallCondition='VersionNT64'​



SourceFile=..\..\Sources\Lync2010\Lync_MSP_4.0

.7577.4356_ALL_X64_W7_R1\Lync_KB2737155_x64.msp



/MspPackage



...











I want it to be installed for x64 platform. But here is the log :



...



Condition 'VersionNT64' evaluates to true.



...



Planned package: Lync_msp_2737155_x64, state: Absent, default

requested: Present, ba requested: Present, execute: None, rollback:

None, cache: No, uncache: No, dependency: None



..







And finally, it's not installed. Why so ?







Thanks.





--

Sincerely,

Gabriel



I know no way of judging the future but by the past.

Patrick Henry

You can never plan the future by the past.

Edmund Burke

---
---

Learn Graph Databases - Download FREE O'Reilly Book

Graph Databases is the definitive new guide to graph databases and

their

applications. Written by three acclaimed leaders in the field,

this first edition is now available. Download your free book today!

[1]http://p.sf.net/sfu/13534_NeoTech

___

WiX-users mailing list

[2]WiX-users@lists.sourceforge.net

[3]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. http://p.sf.net/sfu/13534_NeoTech
2. mailto:WiX-users@lists.sourceforge.net
3. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Extract Binary file from MSI to Temp folder using C#

2013-09-03 Thread Gabriel Ivanes
You may want a complete example :



!-- *** BINARY *** --

!-- Stockage des fichiers dans la table Binary --

Binary Id=polyval.hta SourceFile=Binary\polyval.hta /



...



CustomAction Id=Launch_HTA_binary_table

  Script=vbscript

  Execute=firstSequence



Dim TempFolder : TempFolder =
Session.Property(TempFolder)

Dim SFolder : SFolder = Session.Property(SystemFolder)



'** Début du main **

ExtractBinary polyval.hta,
TempFolder amp; polyval.hta' Extraction du fichier HTA
de la table Binary vers le dossier Temp

ExtractIcon polyval.ico,
TempFolder amp; polyval.ico' Extraction du fichier ico
de la table Binary vers le dossier Temp

SExecute SFolder amp; mshta.exe
 amp; TempFolder amp; polyval.hta' Exécution du HTA à partir
du dossier Temp

CleanFile
TempFolder amp; polyval.hta' Suppression
du fichier HTA dans le dossier Temp

CleanFile
TempFolder amp; polyval.ico' Suppression
du fichier ico dans le dossier Temp

SetMSIProperty
REGION,HKEY_LOCAL_MACHINE\SOFTWARE\Marimba\Applications\REGION '
Récupération d'une clé de registre pour l'affecter à une variable
windows installer

'** Fin du main **





Function SetMSIProperty(MSIProperty,RegistryKey)



Dim WShell

Set WShell = CreateObject(Wscript.Shell)



RegistryValue = WShell.RegRead(RegistryKey)

Session.Property(MSIProperty)=RegistryValue



Set WShell = nothing



End Function





Function ExtractBinary(BinaryName, OutputFile)

Const msiReadStreamAnsi = 2



Dim oDatabase

Set oDatabase = Session.Database



Dim View

Set View = oDatabase.OpenView(SELECT * FROM Binary
WHERE Name = ' amp; BinaryName amp; ')

View.Execute



Dim Record

Set Record = View.Fetch

Dim BinaryData



BinaryData = Record.ReadStream(2, Record.DataSize(2),
msiReadStreamAnsi)



Dim FSO

Set FSO = CreateObject(Scripting.FileSystemObject)

Dim Stream

Set Stream = FSO.CreateTextFile(OutputFile, True)

Stream.Write BinaryData

Stream.Close

Set FSO = Nothing

End Function



Function ExtractIcon(IconName, OutputFile)

Const msiReadStreamAnsi = 2



Dim oDatabase

Set oDatabase = Session.Database



Dim View

Set View = oDatabase.OpenView(SELECT * FROM Icon WHERE
Name = ' amp; IconName amp; ')

View.Execute



Dim Record

Set Record = View.Fetch

Dim BinaryData



BinaryData = Record.ReadStream(2, Record.DataSize(2),
msiReadStreamAnsi)



Dim FSO

Set FSO = CreateObject(Scripting.FileSystemObject)

Dim Stream

Set Stream = FSO.CreateTextFile(OutputFile, True)

Stream.Write BinaryData

Stream.Close

Set FSO = Nothing

End Function



Sub SExecute(Command)



Dim oShell

Set oShell = CreateObject(Wscript.Shell)



Dim oExec : oExec = oShell.Run(Command,0,True)



Set oShell = nothing



End Sub



Function CleanFile(File)



Dim oShell

Set oShell = CreateObject(Wscript.Shell)



Command = cmd /c del /F /Q  amp; File



Dim oExec : oExec = oShell.Run(Command,0,True)



Set oShell = nothing



End Function



/CustomAction



..

InstallExecuteSequence

Custom Action=Launch_HTA_binary_table Sequence=56REGI
ONISEMPTY=Yes And NOT REMOVE = ALL And Not Installed/Custom

/InstallExecuteSequence



InstallUISequence

Custom Action=Launch_HTA_binary_table Sequence=56REGI
ONISEMPTY=Yes And NOT REMOVE = ALL And Not Installed/Custom

/InstallUISequence



--

Sincèrement,

Gabriel







Le Mar 03 Septembre 2013, à 14:41, ak m a écrit :

custom action during install...





On Tue, Sep 3, 2013 at 5:46 PM, Christopher Painter

[1]chr...@iswix.comwrote:



Is this for an application extracting a resource or for a custom action

during an install?





From: ak m [2]wixak...@gmail.com

Sent: Monday, September 02, 2013 7:21 AM

To: General discussion for Windows Installer XML toolset.


Re: [WiX-users] Extract Binary file from MSI to Temp folder using C#

2013-09-02 Thread Gabriel Ivanes
Hello,



An example function in vbscript :



Function ExtractBinary(BinaryName, OutputFile)

Const msiReadStreamAnsi = 2

Dim oDatabase

Set oDatabase = Session.Database

Dim View

Set View = oDatabase.OpenView(SELECT * FROM Binary WHERE Name =
' amp; BinaryName amp; ')

View.Execute

Dim Record

Set Record = View.Fetch

Dim BinaryData

BinaryData = Record.ReadStream(2, Record.DataSize(2),
msiReadStreamAnsi)

Dim FSO

Set FSO = CreateObject(Scripting.FileSystemObject)

Dim Stream

Set Stream = FSO.CreateTextFile(OutputFile, True)

Stream.Write BinaryData

Stream.Close

Set FSO = Nothing

End Function



It might help.



--

Sincerely,

Gabriel









Le Lun 02 Septembre 2013, à 14:16, ak m a écrit :

Dear All,



Code to Extract Binary file from MSI to Temp folder using C#



Anyone Plz help me on this?





Thanks in Advance...





Anil

---
---

Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!

Discover the easy way to master current and previous Microsoft

technologies

and advance your career. Get an incredible 1,500+ hours of step-by-step

tutorial videos with LearnDevNow. Subscribe today and save!

[1]http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg
.clktrk

___

WiX-users mailing list

[2]WiX-users@lists.sourceforge.net

[3]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
2. mailto:WiX-users@lists.sourceforge.net
3. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] MsiPackage InstallCondition

2013-07-11 Thread Gabriel Ivanes
Tim,

LANG is just a burn's parameter i choose sets in installation's command
line.

My need was to get logonuser's language not UserLanguageID (installation
is in system context)

But custom actions are not possible in Burn and i usually need a script
to know which user (hkusers\sid) to look for.

That's why i finallly user a parameter. 

I don't know what are your needs. What do you expect to have in LANG's
value ?

Le Lun 08 juillet 2013, à 20:03, TimM a écrit :
 Gabriel,
 
 I am trying to condition my MsiPackage on Language and you have mentioned
 here the installCondition:
 InstallCondition=LANG = quot;fr-FRquot; AND NOT VersionNT64
 
 So my question where did LANG get defined. I see the Variable set
 section:
 Variable Name=LANG bal:Overridable=yes/
 
 But I do not see where/how LANG was set and I only see the
 SystemLanguageID
 and UserLanguageID variables declared in the Burn Built-In variables.
 
 So could you share a bit more on how I can use the InstallCondition and
 Lang
 to condition the launching of my msipackage according to language?
 
 Thanks,
 
 Tim.
 
 
 
 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/MsiPackage-InstallCondition-tp7582754p7587223.html
 Sent from the wix-users mailing list archive at Nabble.com.
 
 --
 This SF.net email is sponsored by Windows:
 
 Build for Windows Store.
 
 http://p.sf.net/sfu/windows-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Change content of Config file after installation

2013-04-04 Thread Gabriel Ivanes
My 2 cents, a vbscript's function :



' Prerequisites

' Proprierty FILE : File Path + Its name

' Propriété LINE : what you want to replace

' Propriété REG_EXP : Reg exp to identify what you want to be replaced

' Theses 3 properties are passed throught CustomActionData's property.

'

Sub Sb_File_Modify()



Dim oFSO, oFile, vFile, vFileLine, vLine, vFind, vReg_Exp, vIndex



vCAD = Session.Property(CustomActionData)


vProperties = Split(vCAD,;)


vFile = Replace(vProperties(0),,)


vLine = vProperties(1)


Set vRegExp = New RegExp



vRegExp.Pattern = vProperties(2)



vRegExp.Global = True


vRegExp.MultiLine = True


If Fn_File_IsExists(vFile) Then


Set oFSO = CreateObject(Scripting.FileSystemObject)


Set oFile = oFSO.OpenTextFile(vFile, 1, False)


vContent = oFile.ReadAll


oFile.Close


Set RegExMatches = vRegExp.Execute(vContent)


For Each myMatch in RegExMatches


vContent = Replace(vContent,myMatch.Value,vLine)


vIndex = 1



Next


If vIndex = 1 Then


Set oFile = oFSO.OpenTextFile(vFile, 2, False)


oFile.write(vContent  vbCrLf)


oFile.Close


End If


Set oFile = Nothing


Set oFSO = Nothing


End If



End Sub







Le Mer 03 Avril 2013, à 20:46, chennam a écrit :

Hey in Continuation of the previous solution (see previous comment) Can

we do

file search of Web.Prod.Web1.config and replace some content web1 to

web2  on conditional basis based on [Computername] we are Installing?



Like if [ComputerName] is WEBPQR then replace Web1 with web2 allover
the

content of the Web.Prod.Web1.config file dynamically(like file search
and

replace)?



Thanks in advance.







--

View this message in context:

[1]http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Change
-content-of-Config-file-after-installation-tp7584789p7584859.html

Sent from the wix-users mailing list archive at Nabble.com.



---
---

Minimize network downtime and maximize team effectiveness.

Reduce network management and security costs.Learn how to hire

the most talented Cisco Certified professionals. Visit the

Employer Resources Portal

[2]http://www.cisco.com/web/learning/employer_resources/index.html

___

WiX-users mailing list

[3]WiX-users@lists.sourceforge.net

[4]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Change-content-of-Config-file-after-installation-tp7584789p7584859.html
2. http://www.cisco.com/web/learning/employer_resources/index.html
3. mailto:WiX-users@lists.sourceforge.net
4. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Heat, XSLT, and Difxapp

2013-03-27 Thread Gabriel Ivanes
I change my mind.

Hardcored oemsetup.inf in global wxs with difxapp:driver.

Then, heat harvest driver's file and exclude oemsetup.inf.

Obvious.



Le %:Date:, Gabriel Ivanes [1]g...@fastmail.net a écrit:

Hi there,







I want to automat heat with difxapp. I use heat this way :







heat dir .\Sources -cg cmp_files_driver_x86 -dr TARGETDIR -gg -ke -out

Projet\Files_driver.wxs -var var.Sources = .\Sources -t

Build\Set_difxapp_to_inf.xsl.







But XSLT failed because i don't know it well.







First, i wanted to include WixDifxAppExtension with -ext, but can't

figure out how to make it work. So, i tried with :







  xsl:templatematch=/*[local-name()='Wix']



Wix xmlns=[1][2]http://schemas.microsoft.com/wix/2006/wi;



xmlns:difx='[2]http://schemas.microsoft.com/wix/DifxAppExtensi

on'



xsl:copy-ofselect=node()|@*/



/Wix



  /xsl:template







within XSLT. It's ok but is it the good way ?







Then, i need to track inf file to add difxapp to its component.









xsl:key name=config-search match=Wix:Component[contains(Wix:File/@S

ource, '.inf')] use=@Id/





  xsl:templatematch=Wix:Component[key('config-search',@Id)]



xsl:copy



  xsl:apply-templatesselect=@*|node()/



  difx:driver

AddRemovePrograms=yes Legacy=yes ForceInstall=no PlugAndPlayPromp

t=no/



/xsl:copy



  /xsl:template







It doesn't work. difx instead of difx:driver worked..







But all together, the first part stop the execution of the second.







Any idea ?







Thanks.





--

Sincerely,

Gabriel



I know no way of judging the future but by the past.

Patrick Henry

You can never plan the future by the past.

Edmund Burke



References



1. [3]http://schemas.microsoft.com/wix/2006/wi

2. [4]http://schemas.microsoft.com/wix/DifxAppExtension

---
---

Own the Future-Intel® Level Up Game Demo Contest 2013

Rise to greatness in Intel's independent game demo contest.

Compete for recognition, cash, and the chance to get your game

on Steam. $5K grand prize plus 10 genre and skill prizes.

Submit your demo by 6/6/13. [5]http://p.sf.net/sfu/intel_levelupd2d

___

WiX-users mailing list

[6]WiX-users@lists.sourceforge.net

[7]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. mailto:g...@fastmail.net
2. http://schemas.microsoft.com/wix/2006/wi
3. http://schemas.microsoft.com/wix/2006/wi
4. http://schemas.microsoft.com/wix/DifxAppExtension
5. http://p.sf.net/sfu/intel_levelupd2d
6. mailto:WiX-users@lists.sourceforge.net
7. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Own the Future-Intelreg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is there the way to pass installed product path to the major upgrade installer

2013-03-26 Thread Gabriel Ivanes
Set Property and Set Directory are 2 different kind of custom action :
[1]http://blogs.technet.com/b/alexshev/archive/2008/02/21/from-msi-to-w
ix-part-5-custom-actions.aspx



Le %:Date:, AK [2]kisslo...@gmail.com a écrit:

Hi!

I need to save install directory during major upgrade. To do this I

change

INSTALLFOLDER property using custom action.



Action=ChangeInstallFolder Before=InstallInitialize

MajorUpgrade Schedule=afterInstallInitialize

Action=Install Before=ProcessComponents



But if I look at the log file:

Action start 4:30:53: ProcessComponents.

...

MSI (s) (FC:6C) [04:30:53:865]: Dir (source): Key: INSTALLFOLDER
,

Object:

C:\ProgramData\Package Cache\{GUID}v{version}\ , LongSubPath: {DEFAULT

PATH}, ShortSubPath: ...\...\



So, property was changed, but directory still has default path.



Can I change install folder by custom action?



Regards, Alexey.







--

View this message in context:

[3]http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Is-the
re-the-way-to-pass-installed-product-path-to-the-major-upgrade-installe
r-tp7584634.html

Sent from the wix-users mailing list archive at Nabble.com.



---
---

Own the Future-Intel® Level Up Game Demo Contest 2013

Rise to greatness in Intel's independent game demo contest.

Compete for recognition, cash, and the chance to get your game

on Steam. $5K grand prize plus 10 genre and skill prizes.

Submit your demo by 6/6/13. [4]http://p.sf.net/sfu/intel_levelupd2d

___

WiX-users mailing list

[5]WiX-users@lists.sourceforge.net

[6]https://lists.sourceforge.net/lists/listinfo/wix-users



--
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. 
http://blogs.technet.com/b/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx
2. mailto:kisslo...@gmail.com
3. 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Is-there-the-way-to-pass-installed-product-path-to-the-major-upgrade-installer-tp7584634.html
4. http://p.sf.net/sfu/intel_levelupd2d
5. mailto:WiX-users@lists.sourceforge.net
6. https://lists.sourceforge.net/lists/listinfo/wix-users
--
Own the Future-Intelreg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Heat, XSLT, and Difxapp

2013-03-26 Thread Gabriel Ivanes
Hi there,



I want to automat heat with difxapp. I use heat this way :



heat dir .\Sources -cg cmp_files_driver_x86 -dr TARGETDIR -gg -ke -out
Projet\Files_driver.wxs -var var.Sources = .\Sources -t
Build\Set_difxapp_to_inf.xsl.



But XSLT failed because i don't know it well.



First, i wanted to include WixDifxAppExtension with -ext, but can't
figure out how to make it work. So, i tried with :



  xsl:template match=/*[local-name()='Wix']

Wix xmlns=[1]http://schemas.microsoft.com/wix/2006/wi;

 xmlns:difx='[2]http://schemas.microsoft.com/wix/DifxAppExtensi
on'

xsl:copy-of select=node()|@*/

/Wix

  /xsl:template



within XSLT. It's ok but is it the good way ?



Then, i need to track inf file to add difxapp to its component.




xsl:key name=config-search match=Wix:Component[contains(Wix:File/@S
ource, '.inf')] use=@Id/


  xsl:template match=Wix:Component[key('config-search', @Id)]

xsl:copy

  xsl:apply-templates select=@* | node() /

  difx:driver
AddRemovePrograms=yes Legacy=yes ForceInstall=no PlugAndPlayPromp
t=no/

/xsl:copy

  /xsl:template



It doesn't work. difx instead of difx:driver worked..



But all together, the first part stop the execution of the second.



Any idea ?



Thanks.


--
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

References

1. http://schemas.microsoft.com/wix/2006/wi
2. http://schemas.microsoft.com/wix/DifxAppExtension
--
Own the Future-Intelreg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] acces hklm from a current user installer

2013-03-08 Thread Gabriel Ivanes
Hi,

You're sure your key and value exist ?

To me -2147287038 means : not exist

Le %:Date:, Sean Farrow sean.far...@seanfarrow.co.uk a écrit:
 Hi,
 I need to access the hklm key from a per-user install from a registry
 search element
 My property looks like:
   Fragment
 !--JAWS 14 exe path.--
 Property Id=JAWS14PATH Secure=yes
   RegistrySearch Id=JAWS14PATH Root=HKLM Key=SOFTWARE\Freedom
   Scientific\JAWS\14.0 Name=Target Type=raw/
 /Property
 The log looks a follows:
 Action 20:40:11: AppSearch. Searching for installed applications
 Action start 20:40:11: AppSearch.
 AppSearch: Property: JAWS14PATH, Signature: JAWS14PATH
 MSI (c) (A0:84) [20:40:11:112]: Note: 1: 2262 2: Signature 3: -2147287038
 Do I need escaped backslashes in strings?
 Does anyone have any ideas how I can get this working?
 Cheers
 Sean.
 --
 Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
 Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
 endpoint security space. For insight on selecting the right partner to 
 tackle endpoint security challenges, access the full report. 
 http://p.sf.net/sfu/symantec-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Noobie Help

2013-03-08 Thread Gabriel Ivanes
Hi,

Here is a sample :

MsiPackage
 Name=2010 Redistributable x86 SP1 
 
SourceFile=Sources\PreReqs\Vcredist_2010_SP1\x86\vc_red.msi
MsiProperty Name=ROOTDRIVE Value=C:\/
MsiProperty Name=REBOOT
Value=ReallySuppress/
MsiProperty Name=USING_EXUIH_SILENT
Value=1/
Payload Name=vc_red.cab
SourceFile=Sources\PreReqs\Vcredist_2010_SP1\x86\vc_red.cab/
/MsiPackage   
MsiPackage
Name=2010 Redistributable x64 SP1  
InstallCondition=VersionNT64

SourceFile=Sources\PreReqs\Vcredist_2010_SP1\x64\vc_red.msi
MsiProperty Name=ROOTDRIVE Value=C:\/
MsiProperty Name=REBOOT
Value=ReallySuppress/
MsiProperty Name=USING_EXUIH_SILENT Value=1/
Payload Name=vc_red.cab
SourceFile=Sources\PreReqs\Vcredist_2010_SP1\x64\vc_red.cab/
/MsiPackage 

Le %:Date:, Jack Sojourn jack.sojo...@gmail.com a écrit:
 Thanks Jacob.
 
 You wouldn't have any example code or sample wxs file would you?
 
 
 On Tue, Mar 5, 2013 at 2:35 PM, Hoover, Jacob
 jacob.hoo...@greenheck.comwrote:
 
  Skip the merge module, use burn, and add the two redistributables as
  prerequisites. Make the x64 specific redistributable, give it an
  InstallCondition of VersionNT64 and a DetectCondition based on a variable
  you define with a search.
 
 
  -Original Message-
  From: Jack Sojourn [mailto:jack.sojo...@gmail.com]
  Sent: Tuesday, March 05, 2013 12:32 PM
  To: wix-users@lists.sourceforge.net
  Subject: [WiX-users] Noobie Help
 
  Hello...I am new to wix and installation programming in general.  I have a
  pretty simple setup requirement but am not sure how to do it.  My first
  hurdle is the redist install.  I know I should use the Merge Id and
  Microsoft_VC100_ATL_x86.msm or Microsoft_VC100_ATL_x64.msm.
 
  However what I need to do is if the OS is 32bit then install the x86 one.
  if 64bit then I need to install both as my app has a 32 bit dll and can
  not be recompiled.
 
  can anyone give me some direction on the best way to do this?
 
  Thanks.
 
  --
  Everyone hates slow websites. So do we.
  Make your web apps faster with AppDynamics Download AppDynamics Lite for
  free today:
  http://p.sf.net/sfu/appdyn_d2d_feb
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
  --
  Everyone hates slow websites. So do we.
  Make your web apps faster with AppDynamics
  Download AppDynamics Lite for free today:
  http://p.sf.net/sfu/appdyn_d2d_feb
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 --
 Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
 Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
 endpoint security space. For insight on selecting the right partner to 
 tackle endpoint security challenges, access the full report. 
 http://p.sf.net/sfu/symantec-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Using Product Id=*

2013-02-21 Thread Gabriel Ivanes
Hello,

If you plan an upgrade, why do you need ProductCode of the previous
version ?

Le %:Date:, Gary Ewan Park ge...@gep13.co.uk a écrit:
 Hello,
 
 I am still quite new to WiX, so please bear with me...
 
 I have implemented the following pattern:
 
 http://wix.sourceforge.net/manual-wix3/major_upgrade.htm
 
 I allow for ease of upgrade.  However, the installation package that I am
 trying to create needs to know about the ProductCode, in order to pass a
 parameter to the msiexec to make it uninstall the app.  Since I am using
 Id=”*”, how can I find out the correct ProductCode (i.e. GUID), in order
 to pass as a parameter to msiexec.
 
 Thanks
 
 Gary
 
 Sent from Windows Mail
 
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] CustomAction : FirstSequence/Rollback, OncePerProcess/Commit

2013-02-21 Thread Gabriel Ivanes
Hello,

Anyone knows why does the bit FirstSequence automatically set Rollback's
bit ?
The same with OncePerProcess and Commit.
I made an immediat custom action with FirstSequence but i don't want
rollback's bit.
No problem in execution, but i'm just curious why.
Thanks.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] InstallUISequence

2013-02-20 Thread Gabriel Ivanes
Like a condition ? :

InstallUISequence
  Show Dialog=Migration_MAP_a00
Before=ExecuteAction
USRCONCERNED = YES
/Show
/InstallUISequence

Le %:Date:, Joseph, Sijo sijo.jos...@cgi.com a écrit:
 Hi All,
 
 Is there any property can be set in InstallUISequence to display a
 custom dialog while the msi is installing.
 
 I can see the parameters after and before  like below
 
 InstallUISequence
  Show Dialog=UserRegistrationDlg Before=ExecuteAction /
 /InstallUISequence
 
 
 Regards ,
 Sijo Joseph
 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Running an MSI a second time to install more features or uninstall an already installed feature (while keeping others)

2013-02-15 Thread Gabriel Ivanes
Good day,

I had this required. I used transitive components.

You could try ADDLOCAL property. Dunno know if it's available during msi
repair.

Le %:Date:, Hans ter Horst hoshis...@gmail.com a écrit:
 Hi,
 I have a feature tree based installer that has 4 features. If I install
 during a first phase, for example, features A and B, I would like to be
 able to run the installer again to install C and maybe uninstall B. At
 the
 moment when I start the installer for the 2nd time, the only option I
 have
 is to uninstall.
 
 How do I accomplish that?
 
 Thanks,
 
 Hans
 
 -- 
 http://monochrome.me.uk/blog/
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Running an MSI a second time to install more features or uninstall an already installed feature (while keeping others)

2013-02-15 Thread Gabriel Ivanes
OK. Bootstrapper allow repair command.

Le %:Date:, Hans ter Horst hoshis...@gmail.com a écrit:
 Ah, sorry, I meant when running the MSI via the burn bootstrapper. I have
 the MSI working like I want but I do run my MSI with user interface from
 the Bun bootstrapper, but when I run the bootstrapper a 2nd time, I only
 have the Repair and Uninstall options.
 
 Sorry for the confusion.
 
 
 On Fri, Feb 15, 2013 at 1:58 PM, Hans ter Horst hoshis...@gmail.com
 wrote:
 
  Hi,
  I have a feature tree based installer that has 4 features. If I install
  during a first phase, for example, features A and B, I would like to be
  able to run the installer again to install C and maybe uninstall B. At the
  moment when I start the installer for the 2nd time, the only option I have
  is to uninstall.
 
  How do I accomplish that?
 
  Thanks,
 
  Hans
 
  --
  http://monochrome.me.uk/blog/
 
 
 
 
 -- 
 http://monochrome.me.uk/blog/
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Running an MSI a second time to install more features or uninstall an already installed feature (while keeping others)

2013-02-15 Thread Gabriel Ivanes
You could pass ADDLOCAL parameter to your Bootstrapper with different
value in install and repair.

Bundle
..
Variable Name=ADDLOCAL bal:Overridable=yes/
..
/Bundle

MsiPackage
MsiProperty Name=ADDLOCAL Value=[ADDLOCAL]/
/MsiPackage


Le %:Date:, Gabriel Ivanes g...@fastmail.net a écrit:
 OK. Bootstrapper allow repair command.
 
 Le %:Date:, Hans ter Horst hoshis...@gmail.com a écrit:
  Ah, sorry, I meant when running the MSI via the burn bootstrapper. I have
  the MSI working like I want but I do run my MSI with user interface from
  the Bun bootstrapper, but when I run the bootstrapper a 2nd time, I only
  have the Repair and Uninstall options.
  
  Sorry for the confusion.
  
  
  On Fri, Feb 15, 2013 at 1:58 PM, Hans ter Horst hoshis...@gmail.com
  wrote:
  
   Hi,
   I have a feature tree based installer that has 4 features. If I install
   during a first phase, for example, features A and B, I would like to be
   able to run the installer again to install C and maybe uninstall B. At the
   moment when I start the installer for the 2nd time, the only option I have
   is to uninstall.
  
   How do I accomplish that?
  
   Thanks,
  
   Hans
  
   --
   http://monochrome.me.uk/blog/
  
  
  
  
  -- 
  http://monochrome.me.uk/blog/
  --
  Free Next-Gen Firewall Hardware Offer
  Buy your Sophos next-gen firewall before the end March 2013 
  and get the hardware for free! Learn more.
  http://p.sf.net/sfu/sophos-d2d-feb
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 -- 
 Sincèrement,
 Gabriel
 
 I know no way of judging the future but by the past.
 Patrick Henry
 You can never plan the future by the past.
 Edmund Burke
 
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Running an MSI a second time to install more features or uninstall an already installed feature (while keeping others)

2013-02-15 Thread Gabriel Ivanes
OK. I tried MsiPackage/@EnableFeatureSelection=yes without success.
With MsiPackage/@DisplayInternalUI=yes it's ok but i don't it must be
used together.

Anyway MsiPackage/@EnableFeatureSelection would give a GUI ? Any way to
make it silent ?

Le %:Date:, Rob Mensching r...@robmensching.com a écrit:
 Don't try to use ADDLOCAL or the other properties. You'll get into insane
 amounts of complexity trying to get that all correct during upgrades and
 uninstalls. Burn will callback to your BA and request what feature states
 you want if you set MsiPackage/@EnableFeatureSelection=yes.
 
 
 On Fri, Feb 15, 2013 at 6:21 AM, Gabriel Ivanes g...@fastmail.net wrote:
 
  You could pass ADDLOCAL parameter to your Bootstrapper with different
  value in install and repair.
 
  Bundle
  ..
  Variable Name=ADDLOCAL bal:Overridable=yes/
  ..
  /Bundle
 
  MsiPackage
  MsiProperty Name=ADDLOCAL Value=[ADDLOCAL]/
  /MsiPackage
 
 
  Le %:Date:, Gabriel Ivanes g...@fastmail.net a écrit:
   OK. Bootstrapper allow repair command.
  
   Le %:Date:, Hans ter Horst hoshis...@gmail.com a écrit:
Ah, sorry, I meant when running the MSI via the burn bootstrapper. I
  have
the MSI working like I want but I do run my MSI with user interface
  from
the Bun bootstrapper, but when I run the bootstrapper a 2nd time, I
  only
have the Repair and Uninstall options.
   
Sorry for the confusion.
   
   
On Fri, Feb 15, 2013 at 1:58 PM, Hans ter Horst hoshis...@gmail.com
wrote:
   
 Hi,
 I have a feature tree based installer that has 4 features. If I
  install
 during a first phase, for example, features A and B, I would like to
  be
 able to run the installer again to install C and maybe uninstall B.
  At the
 moment when I start the installer for the 2nd time, the only option
  I have
 is to uninstall.

 How do I accomplish that?

 Thanks,

 Hans

 --
 http://monochrome.me.uk/blog/

   
   
   
--
http://monochrome.me.uk/blog/
   
  --
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
  
  
   --
   Sincèrement,
   Gabriel
  
   I know no way of judging the future but by the past.
   Patrick Henry
   You can never plan the future by the past.
   Edmund Burke
  
  
  --
   Free Next-Gen Firewall Hardware Offer
   Buy your Sophos next-gen firewall before the end March 2013
   and get the hardware for free! Learn more.
   http://p.sf.net/sfu/sophos-d2d-feb
   ___
   WiX-users mailing list
   WiX-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
  --
  Sincèrement,
  Gabriel
 
  I know no way of judging the future but by the past.
  Patrick Henry
  You can never plan the future by the past.
  Edmund Burke
 
 
  --
  Free Next-Gen Firewall Hardware Offer
  Buy your Sophos next-gen firewall before the end March 2013
  and get the hardware for free! Learn more.
  http://p.sf.net/sfu/sophos-d2d-feb
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] XSLT

2013-02-12 Thread Gabriel Ivanes
Thanks Jacob. It works.
Now, i'm trying to figure out a simpler way to achieve those
replacement.

My attempts (here D:\ = INSTALLDIR) :

  xsl:template match='Wix:RegistryValue[@Value = D:\]'
xsl:value-of
select=translate(@Value,'D:\','[INSTALLDIR') /
  /xsl:template

xsl:template match=Wix:RegistryValue
xsl:for-each select=Value
xsl:value-of
select=translate(@Value,'D:\','[INSTALLDIR]')/
/xsl:for-each
/xsl:template

I understand errors but that's not enough. Need to learn.
Thanks for the tip Peter. I use regexp in vbscript.
Good news. A moment, i wondered if i wouldn't have to use
vbscript/regexp to modify reg's file directly.
I'm finishing this msi, and i'll go on searching.

Anyway, thanks guys.

Le %:Date:, Peter Shirtcliffe pshirtcli...@sdl.com a écrit:
 Regular expressions are useful here if you know them:
 http://www.w3.org/TR/xpath-functions/#string.match
 
 -Original Message-
 From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] 
 Sent: 11 February 2013 19:31
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] [Wix-users] XSLT
 
 Hmm,
   I am no XSLT GURU, but could you do...
 
 xsl:template name=replace-string
 xsl:param name=text/
 xsl:param name=replace/
 xsl:param name=with/
 xsl:choose
   xsl:when test=contains($text,$replace)
 xsl:value-of select=substring-before($text,$replace)/
 xsl:value-of select=$with/
 xsl:call-template name=replace-string
   xsl:with-param name=text
 select=substring-after($text,$replace)/
   xsl:with-param name=replace select=$replace/
   xsl:with-param name=with select=$with/
 /xsl:call-template
   /xsl:when
   xsl:otherwise
 xsl:value-of select=$text/
   /xsl:otherwise
 /xsl:choose
   /xsl:template
 
 xsl:template match=wix:RegistryValue/@Value
   xsl:attribute name=Value
   xsl:choose
   xsl:when test=starts-with(.,
 'C:\windows\system32')
   xsl:call-template name=replace-string
 xsl:with-param name=text
 select=./
 xsl:with-param name=replace
 select='C:\windows\system32' /
 xsl:with-param name=with
 select='[SystemFolder]'/
   /xsl:call-template
   /xsl:when
   xsl:otherwise
   xsl:value-of select=./
   /xsl:otherwise
   /xsl:choose
   /xsl:attribute
 /xsl:template
 
 -Original Message-
 From: Gabriel Ivanes [mailto:g...@fastmail.net]
 Sent: Monday, February 11, 2013 10:16 AM
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] [Wix-users] XSLT
 
 I already has a template. I changed attributes components few times.
 In this case, i don't know how to identify template :
 
   xsl:template match=wix:RegistryValue
 RegistryValue Value=@Value
   xsl:apply-templates select=[SystemFolder]/
 /RegistryValue
   /xsl:template
 
 This is bad.
 
 Sure i want to resolv my issue, but i also wanted advises of good
 documentation with a wix approach.
 I find Nick's book to be a good way to learn wix. Maybe Wix's community
 has
 well-know ressource for XSLT.
 Thanks.
 
 Le %:Date:, Hoover, Jacob jacob.hoo...@greenheck.com a écrit:
  I assume you mean how do I invoke an XSLT from heat.  The wix specific
  portion is simply passing -t transformfilename.xslt.  From there on 
  out, it's all just XSLT.
  
  Here's an identity template to get you started:
  
  ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:msxsl=urn:schemas-microsoft-com:xslt
xmlns:wix=http://schemas.microsoft.com/wix/2006/wi;
exclude-result-prefixes=msxsl wix
xsl:output method=xml indent=yes/
xsl:namespace-alias result-prefix=#default stylesheet-prefix=wix
/
  
xsl:template match=@* | node()
  xsl:copy
xsl:apply-templates select=@* | node()/
  /xsl:copy
/xsl:template
  /xsl:stylesheet
  
  From there, it's up to you to determine which element's you want to
 change. If you wanted to tweak a directory, you'd use something like
 xsl:template match=wix:Directory.
  
  
  Jacob
  
  -Original Message-
  From: Gabriel Ivanes [mailto:g...@fastmail.net]
  Sent: Monday, February 11, 2013 9:50 AM
  To: wix-users@lists.sourceforge.net
  Subject: [WiX-users] [Wix-users] XSLT
  
  Good day,
  
  Any good tutorial to use xsl with wix ?
  
  For example, replacing C:\windows\system32 with [SystemFolder] in a 
  reg's file with heat.
  
  Thanks.
  
  --
  Sincerely,
  Gabriel
  
  I know no way of judging the future but by the past.
  Patrick Henry
  You can never plan

[WiX-users] [Wix-users] XSLT

2013-02-11 Thread Gabriel Ivanes
Good day,

Any good tutorial to use xsl with wix ?

For example, replacing C:\windows\system32 with [SystemFolder] in a
reg's file with heat.

Thanks.

-- 
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] XSLT

2013-02-11 Thread Gabriel Ivanes
I already has a template. I changed attributes components few times.
In this case, i don't know how to identify template :

  xsl:template match=wix:RegistryValue
RegistryValue Value=@Value
  xsl:apply-templates select=[SystemFolder]/
/RegistryValue
  /xsl:template

This is bad.

Sure i want to resolv my issue, but i also wanted advises of good
documentation with a wix approach.
I find Nick's book to be a good way to learn wix. Maybe Wix's community
has well-know ressource for XSLT.
Thanks.

Le %:Date:, Hoover, Jacob jacob.hoo...@greenheck.com a écrit:
 I assume you mean how do I invoke an XSLT from heat.  The wix specific
 portion is simply passing -t transformfilename.xslt.  From there on out,
 it's all just XSLT. 
 
 Here's an identity template to get you started:
 
 ?xml version=1.0 encoding=utf-8?
 xsl:stylesheet version=1.0
   xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xmlns:msxsl=urn:schemas-microsoft-com:xslt
   xmlns:wix=http://schemas.microsoft.com/wix/2006/wi;
   exclude-result-prefixes=msxsl wix
   xsl:output method=xml indent=yes/
   xsl:namespace-alias result-prefix=#default stylesheet-prefix=wix
   /
 
   xsl:template match=@* | node()
 xsl:copy
   xsl:apply-templates select=@* | node()/
 /xsl:copy
   /xsl:template
 /xsl:stylesheet
 
 From there, it's up to you to determine which element's you want to change. 
 If you wanted to tweak a directory, you'd use something like xsl:template 
 match=wix:Directory.
 
 
 Jacob
 
 -Original Message-
 From: Gabriel Ivanes [mailto:g...@fastmail.net] 
 Sent: Monday, February 11, 2013 9:50 AM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] [Wix-users] XSLT
 
 Good day,
 
 Any good tutorial to use xsl with wix ?
 
 For example, replacing C:\windows\system32 with [SystemFolder] in a
 reg's file with heat.
 
 Thanks.
 
 --
 Sincerely,
 Gabriel
 
 I know no way of judging the future but by the past.
 Patrick Henry
 You can never plan the future by the past.
 Edmund Burke
 
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 and get the
 hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Heat-harvesting with subfolder in the File-Source atribute

2013-02-06 Thread Gabriel Ivanes
Hi,

And with this :

*heat.exe dir $(SolutionDir)MyProject -ag -sfrag -srd -var
var.MyProject.ProjectDir -out  $(ProjectDir)HarvestedFiles.wxs*

Or you could add a subdir Sources in your SolutionDir :

C:\\SolutionDir\MyProject\Sources\MyDirectory

*heat.exe dir $(SolutionDir)MyProject\Sources -ag -sfrag -srd -var
var.MyProject.ProjectDir -out  $(ProjectDir)HarvestedFiles.wxs*

Le %:Date:, Sam Boman s...@samb.se a écrit:
 Hi,
 
 I have a project structure which is like this:
 *C:\\SolutionDir\MyProject\MyDirectory*
 
 In a pre-build event I use this:
 *heat.exe dir $(SolutionDir)MyProject\MyDirectory -ag -sfrag -srd -var
 var.MyProject.ProjectDir -out  $(ProjectDir)HarvestedFiles.wxs*
 
 The output in HarvestedFiles.wxs contains (id's removed...):
 Component Id= Guid=*
 
   File Id= KeyPath=yes
 Source=$(var.MyProject.ProjectDir)\FileOne.txt //Component
 
 But I expect it to be (with the MyDirectory folder included in Source):
 
 Component Id= Guid=*  File Id= KeyPath=yes
 Source=$(var.MyProject.ProjectDir)\*MyDirectory\*FileOne.txt
 //Component
 
 How do I do this? I don't want to specify a fixed path, I prefer to
 use dynamic var's.
 
 //Sam
 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013 
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincerely,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Related to Sequences

2013-01-23 Thread Gabriel Ivanes
[TestReg]tab.reg = [INSTALLFOLDER]tab.reg

INSTALLFOLDER shouldn't be empty to be created or you need to use
CreateFolder's table
(http://wix.tramontana.co.hu/tutorial/com-expression-syntax-miscellanea/creating-directories)

Any need to import reg.exe in binary table ? Why not using CA 34 ?
(http://blogs.technet.com/b/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx)

Le Mer 23 Janvier 2013, à 10:09, Karkare,Aparna a écrit :
 My installer makes changes in registry. Before that it should take back
 up of registry in a .reg file. It is doing all this but with few
 problems.
 
 If I store the reg back up file in program files folder then it is saved
 there through below code:
 
 
 Binary Id=reg SourceFile=C:\WINDOWS\system32\reg.exe/Binary
 
 CustomAction Id=CA_reg BinaryKey =reg Execute=deferred
 ExeCommand=EXPORT quot;HKCU\Software\Microsoft\Internet
 Explorer\TabbedBrowsingquot;
 quot;[ProgramFilesFolder]tab.regquot;/CustomAction
 
 
 But If I try to save it in the Install folder then it is not saved,
 rather install folder itself is not getting created. See the code below:
 
 Binary Id=reg SourceFile=C:\WINDOWS\system32\reg.exe/Binary
 
 CustomAction Id=CA_reg BinaryKey =reg Execute=deferred
 ExeCommand=EXPORT quot;HKCU\Software\Microsoft\Internet
 Explorer\TabbedBrowsingquot;
 quot;[TestReg]tab.regquot;/CustomAction
 
 InstallExecuteSequence
  Custom Action=CA_reg
  Before=ProcessComponentsNOT Installed/Custom
 /InstallExecuteSequence
 
 Fragment
   Directory Id=TARGETDIR Name=SourceDir
  Directory Id=ProgramFilesFolder
Directory Id=INSTALLFOLDER Name=TestReg
/
  /Directory
   /Directory
 /Fragment
 
 
 What am I missing? Do I have to specify Directory in the custom action?
 Or is it happening because of sequencing problem? I have tried
 After=InstallInitialize too. May be the custom action is getting
 executed before the Install folder could get created but then when
 installation is finished I don't see the Install folder too.
 
 Basically I want the reg. back up to be stored inside my install folder.
 Please guide me.
 
 
 Regards,
 Aparna Karkare
 
 
 ==
 This communication, including attachments, is confidential, may be
 subject to legal privileges, and is intended for the sole use of the
 addressee. Any use, duplication, disclosure or dissemination of this
 communication, other than by the addressee, is prohibited. If you have
 received this communication in error, please notify the sender
 immediately and delete or destroy this communication and all copies. 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Export-Import registry

2013-01-22 Thread Gabriel Ivanes
You can import a reg file, into a fragment, with heat :
http://wix.sourceforge.net/manual-wix3/heat.htm

Le Mar 22 Janvier 2013, à 9:49, Karkare,Aparna a écrit :
 Hi,
 
 Can we export the registry values, save the .reg file in install folder
 and merge it back using WiX?
 e.g. a particular path like
 HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
 
 
 Regards,
 Aparna Karkare
 
 
 ==
 This communication, including attachments, is confidential, may be
 subject to legal privileges, and is intended for the sole use of the
 addressee. Any use, duplication, disclosure or dissemination of this
 communication, other than by the addressee, is prohibited. If you have
 received this communication in error, please notify the sender
 immediately and delete or destroy this communication and all copies. 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke
-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke


--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Export-Import registry

2013-01-22 Thread Gabriel Ivanes
You can import a reg file, into a fragment, with heat :
http://wix.sourceforge.net/manual-wix3/heat.htm

Le Mar 22 Janvier 2013, à 9:49, Karkare,Aparna a écrit :
 Hi,
 
 Can we export the registry values, save the .reg file in install folder
 and merge it back using WiX?
 e.g. a particular path like
 HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
 
 
 Regards,
 Aparna Karkare
 
 
 ==
 This communication, including attachments, is confidential, may be
 subject to legal privileges, and is intended for the sole use of the
 addressee. Any use, duplication, disclosure or dissemination of this
 communication, other than by the addressee, is prohibited. If you have
 received this communication in error, please notify the sender
 immediately and delete or destroy this communication and all copies. 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Export-Import registry

2013-01-22 Thread Gabriel Ivanes
If you want to export registry's keys, you could use reg export. Not
with Wix.

Le Mar 22 Janvier 2013, à 10:49, Karkare,Aparna a écrit :
 Can registry values be exported too in .reg file? 
 
 Regards,
 
 Aparna Karkare
 
 
 -Original Message-
 From: Gabriel Ivanes [mailto:g...@fastmail.net] 
 Sent: Tuesday, January 22, 2013 4:07 AM
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] Export-Import registry
 
 You can import a reg file, into a fragment, with heat :
 http://wix.sourceforge.net/manual-wix3/heat.htm
 
 Le Mar 22 Janvier 2013, à 9:49, Karkare,Aparna a écrit :
  Hi,
  
  Can we export the registry values, save the .reg file in install folder
  and merge it back using WiX?
  e.g. a particular path like
  HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
  
  
  Regards,
  Aparna Karkare
  
  
  ==
  This communication, including attachments, is confidential, may be
  subject to legal privileges, and is intended for the sole use of the
  addressee. Any use, duplication, disclosure or dissemination of this
  communication, other than by the addressee, is prohibited. If you have
  received this communication in error, please notify the sender
  immediately and delete or destroy this communication and all copies. 
  --
  Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
  MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
  with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
  MVPs and experts. ON SALE this month only -- learn more at:
  http://p.sf.net/sfu/learnnow-d2d
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 -- 
 Sincèrement,
 Gabriel
 
 I know no way of judging the future but by the past.
 Patrick Henry
 You can never plan the future by the past.
 Edmund Burke
 -- 
 Sincèrement,
 Gabriel
 
 I know no way of judging the future but by the past.
 Patrick Henry
 You can never plan the future by the past.
 Edmund Burke
 
 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 ==
 This communication, including attachments, is confidential, may be
 subject to legal privileges, and is intended for the sole use of the
 addressee. Any use, duplication, disclosure or dissemination of this
 communication, other than by the addressee, is prohibited. If you have
 received this communication in error, please notify the sender
 immediately and delete or destroy this communication and all copies. 
 
 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] MsiPackage InstallCondition

2013-01-10 Thread Gabriel Ivanes
Hello,

- Here are Burn Built-in Variables :
http://wix.sourceforge.net/manual-wix3/bundle_built_in_variables.htm

- You can also use burn's arguments. :

Bundle 
... 
Variable Name=LANG bal:Overridable=yes/

/Bundle
Fragment
...

PackageGroup   
...
  MsiPackage
...
InstallCondition=LANG = quot;fr-FRquot; AND NOT VersionNT64  
...

Le Mer 09 Janvier 2013, à 16:24, Branko Horvat a écrit :
 I've got two msi packages in a wix bundle. I want to install one on x86
 platform and the other in case of x64 platform.
 Is it good if I need for the first case the following condition: NOT
 VersionNT64
 and for the second: VersionNT64?
 Can be used also Installed AND ... condition in this burn context?
 Where can I find all the condtions for MsiPackage?
 
 Thx
 
 --
 Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
 and much more. Keep your Java skills current with LearnJavaNow -
 200+ hours of step-by-step video tutorials by Java experts.
 SALE $49.99 this month only -- learn more at:
 http://p.sf.net/sfu/learnmore_122612 
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 
Sincèrement,
Gabriel

I know no way of judging the future but by the past.
Patrick Henry
You can never plan the future by the past.
Edmund Burke

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] Burn and RegistrySearch

2012-12-29 Thread Gabriel Ivanes
Ok. So here a more complete explanation. Be clement, more english is
poor.

The bootstrapper is installed in system-context, so UserLanguageID can't
work.
I need to search the user language by parsing HKUSERS and Volatile
Enviroment to find the Logonuser. This task needs to be done with a
custom action. Since few months that's the way i did it. Another
solution ?

The first disappointment is that burn doesn't accept custom action.
That's what i read. And I tried without success. No of execution in log.

Let's say i have 4 languages with each one a msi and mst. i thought
putting a launchcondition with this custom action.  The packagegroup
will have these 4 msi with no condition but vital=no. So each
installation is attempted but only the right one will go on with a good
condition. It was ok but not a good way to do things. Failed
installation would'nt have been trapped.

Then, i tried to convert this custom action (vbs) in a binary and
executing it in the first sequence of the bundle.
This exe slightly modified put the key in HKUSERS... in
HKLM\Software\[WixBundleName]. Next, i tried use a registrysearch and
use the result in condition for each language's msi. Ok but
RegistrySearch didn't find anything because ExePackage wasn't executed.

The second disappointment was that bundle's conditions (here MsiPackage)
are evalued before any installation begins. This would have been the
solution.

I discover that parameters to bundle can be used with MsiPackage. But in
this case i'd need for conditions...

Ok, what about HKUSERS\.DEFAULT, i wondered. But
MachinePreferredUILanguages's value in a REG_MULTI_SZ..

I would dig Ramirez's book if i could find how to incorpore a custom
action in a custom bundle. But maybe my approach is wrong. Anyway, i
didn't find a way to make a suitable bundle. As my experience in Wix is
small, i'd love to hear that there is a simplier approach and a good
solution. Using UserLanguageID ? :)

Thanks.

Sincerely,
Gabriel


Le Ven 28 Décembre 2012, à 23:54, Rob Mensching a écrit :
 I'm not sure I understood the original requirement completely, but if you
 wanted the user language in the Bundle, would the UserLanguageID variable
 have worked?
 
 
 On Thu, Dec 27, 2012 at 12:29 AM, Gabriel Ivanes g...@fastmail.net
 wrote:
 
  Finally, I used an MST, a launchcondition and with vital=no.
 
  --
 
  I know no way of judging the future but by the past.
  Patrick Henry
 
  You can never plan the future by the past.
  Edmund Burke
 
 
  --
  Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
  MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
  with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
  MVPs and experts. ON SALE this month only -- learn more at:
  http://p.sf.net/sfu/learnmore_122712
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
 -- 
 virtually,
 
Rob Mensching
http://RobMensching.com LLC
 --
 Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
 much more. Get web development skills now with LearnDevNow -
 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
 SALE $99.99 this month only -- learn more at:
 http://p.sf.net/sfu/learnmore_122812
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


-- 

I know no way of judging the future but by the past.
Patrick Henry

You can never plan the future by the past.
Edmund Burke

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] Burn and RegistrySearch

2012-12-29 Thread Gabriel Ivanes
For permission's purpose.

Le Sam 29 Décembre 2012, à 22:49, Rob Mensching a écrit :
 Why is your bootstrapper installing in the system context?
 
 
 On Sat, Dec 29, 2012 at 10:56 AM, Gabriel Ivanes g...@fastmail.net
 wrote:
 
  Ok. So here a more complete explanation. Be clement, more english is
  poor.
 
  The bootstrapper is installed in system-context, so UserLanguageID can't
  work.
  I need to search the user language by parsing HKUSERS and Volatile
  Enviroment to find the Logonuser. This task needs to be done with a
  custom action. Since few months that's the way i did it. Another
  solution ?
 
  The first disappointment is that burn doesn't accept custom action.
  That's what i read. And I tried without success. No of execution in log.
 
  Let's say i have 4 languages with each one a msi and mst. i thought
  putting a launchcondition with this custom action.  The packagegroup
  will have these 4 msi with no condition but vital=no. So each
  installation is attempted but only the right one will go on with a good
  condition. It was ok but not a good way to do things. Failed
  installation would'nt have been trapped.
 
  Then, i tried to convert this custom action (vbs) in a binary and
  executing it in the first sequence of the bundle.
  This exe slightly modified put the key in HKUSERS... in
  HKLM\Software\[WixBundleName]. Next, i tried use a registrysearch and
  use the result in condition for each language's msi. Ok but
  RegistrySearch didn't find anything because ExePackage wasn't executed.
 
  The second disappointment was that bundle's conditions (here MsiPackage)
  are evalued before any installation begins. This would have been the
  solution.
 
  I discover that parameters to bundle can be used with MsiPackage. But in
  this case i'd need for conditions...
 
  Ok, what about HKUSERS\.DEFAULT, i wondered. But
  MachinePreferredUILanguages's value in a REG_MULTI_SZ..
 
  I would dig Ramirez's book if i could find how to incorpore a custom
  action in a custom bundle. But maybe my approach is wrong. Anyway, i
  didn't find a way to make a suitable bundle. As my experience in Wix is
  small, i'd love to hear that there is a simplier approach and a good
  solution. Using UserLanguageID ? :)
 
  Thanks.
 
  Sincerely,
  Gabriel
 
 
  Le Ven 28 Décembre 2012, à 23:54, Rob Mensching a écrit :
   I'm not sure I understood the original requirement completely, but if you
   wanted the user language in the Bundle, would the UserLanguageID variable
   have worked?
  
  
   On Thu, Dec 27, 2012 at 12:29 AM, Gabriel Ivanes g...@fastmail.net
   wrote:
  
Finally, I used an MST, a launchcondition and with vital=no.
   
--
   
I know no way of judging the future but by the past.
Patrick Henry
   
You can never plan the future by the past.
Edmund Burke
   
   
   
  --
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
   
  
  
  
   --
   virtually,
  
  Rob Mensching
  http://RobMensching.com LLC
  
  --
   Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
   much more. Get web development skills now with LearnDevNow -
   350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
   SALE $99.99 this month only -- learn more at:
   http://p.sf.net/sfu/learnmore_122812
   ___
   WiX-users mailing list
   WiX-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
  --
 
  I know no way of judging the future but by the past.
  Patrick Henry
 
  You can never plan the future by the past.
  Edmund Burke
 
 
  --
  Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
  MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
  with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
  MVPs and experts. SALE $99.99 this month only -- learn more at:
  http://p.sf.net/sfu/learnmore_122912
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
 -- 
 virtually,
 
Rob Mensching
http://RobMensching.com LLC
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET

Re: [WiX-users] [Wix-users] Burn and RegistrySearch

2012-12-27 Thread Gabriel Ivanes
Finally, I used an MST, a launchcondition and with vital=no.

-- 

I know no way of judging the future but by the past.
Patrick Henry

You can never plan the future by the past.
Edmund Burke

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] [Wix-users] Burn and RegistrySearch

2012-12-24 Thread Gabriel Ivanes
Hello guys,

I decided to use burn to bundle TortoiseSVN and its LanguagePack (only
for french).
We're using SCCM2012 with per-machine installation in system context.

The language of the user is the result of 2 registry keys :
HKEY_CURRENT_USER\Control Panel\Desktop\PreferredUILanguages if the user
change his display language or
HKEY_CURRENT_USER\Control
Panel\Desktop\MuiCached\MachinePreferredUILanguages if he didn't change
his language.

Usually, i'm using a vbscript to get UserSID (scanning HKUSERS and
possible Volatile Environment and then subkeys) and these values, in a
custom action. But not in condition of an installation...yes but in
SCCM.

Here, i have to condition french language pack installation with the
result. Using burn and vbscript in custom action in fragment, there is
no trace of its execution.

I'm using Wix for few month, and it's my first bootstrapper, so i didn't
manage to get it worked properly.

Is there anyway to get UserSID of the LogonUser in system context in
burn ?
Is my approach the good one ?

Thanks for your time.

Sincerely,
Gabriel

-- 

I know no way of judging the future but by the past.
Patrick Henry

You can never plan the future by the past.
Edmund Burke

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users