[WiX-users] How to write a text file using WIX

2007-07-11 Thread srinivas nomu
Hi Everybody,
  I want to get the CD-Key input from the user and write into a License.dat 
file, which is actually a text file. How should I do with WIX. Any examples?.
  Thanks.
   
  Regards
  Srinivas
   

   
-
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, 
when. -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to write a text file using WIX

2007-07-12 Thread srinivas nomu


srinivas nomu <[EMAIL PROTECTED]> wrote: Dear Bob,
Can you please elaborate a little bit the process or point to me to any 
documentation. I searched on web and could not find relevant topic. Thanks.



Bob Arnson <[EMAIL PROTECTED]> wrote: srinivas nomu wrote:
> I want to get the CD-Key input from the user and write into a 
> License.dat file, which is actually a text file. How should I do with 
> WIX. Any examples?.

The only MSI support for writing to text files is via the IniFile table.

-- 
sig://boB
http://joyofsetup.com/





-
Sick sense of humor? Visit Yahoo! TV's  Comedy with an Edge to see what's on, 
when.

   
-
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. 
 
-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to call a .dll from wix with arguments?

2007-07-16 Thread srinivas nomu
Hi
  I have to call  a dll which is written in C. I donot know how to call this 
dll with arguments. How should I pass these two arguments into entrydll. Write 
now I have code like this:
   
   
  
  
   
   
   
 
   
  From main program, the dll works fine like this
   
  rc = create_license_file_from_cdkey("62225-1127270143-1186981200", "10.0");
   
  How should I pass the above two arguments. Any ideas or examples please?.
   
  Srini

 
-
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to call a .dll from wix with arguments?

2007-07-16 Thread srinivas nomu
Does this mean I have to use only one argument by combining those two 
arguments?. You also said that "Your custom action will have to read any other 
information it needs from the install database using e.g. MsiGetProperty."

  What is meant by that?. Can you elaborate?.
   
  Any good examples?. Thank you very much.
   
  Srini
   
   
  Mike Dimmick <[EMAIL PROTECTED]> wrote:
v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  
w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
A DLL custom action expects one argument only, an MSIHANDLE. The 
signature should be:
   
  UINT WINAPI MyCustomAction( MSIHANDLE hInstall );
   
  Your custom action will have to read any other information it needs from the 
install database using e.g. MsiGetProperty. If your custom action is deferred 
(though this one isn’t) it is very limited in what it can view – mostly just to 
a ‘custom action data’ property named the same as the custom action. An 
immediate custom action can view any part of the database and can even add new 
rows at runtime (although these changes are not persisted, as far as I know).
   
  -- 
  Mike Dimmick
   
  
-
  
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu
Sent: 16 July 2007 21:18
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to call a .dll from wix with arguments?

   
Hi

I have to call  a dll which is written in C. I donot know how to call this 
dll with arguments. How should I pass these two arguments into entrydll. Write 
now I have code like this:

 

 

 

 

 

   

 

From main program, the dll works fine like this

 

rc = create_license_file_from_cdkey("62225-1127270143-1186981200", "10.0");

 

How should I pass the above two arguments. Any ideas or examples please?.

 

Srini



-
  
  TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.



 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to call a .dll from wix with arguments?

2007-07-17 Thread srinivas nomu
Thank you very much. Very good documents. Understood what needs to do. Thanks 
again.
   
  

Ian Stevenson <[EMAIL PROTECTED]> wrote:
  Hi Srini,
   
  The idea is that you don't explicitly pass any arguments to the function call 
(the only argument being the MSI handle that get's set by the installer), 
instead they are passed by a process of the installer setting up the necessary 
properties before the custom action is executed. Then within the DLL's function 
you make calls to MsiGetProperty() to get the "arguments" and do your 
processing. In a similar way, if you need some OUT arguments you use 
MsiSetProperty.
   
  If you google for MsiGetProperty you will find many examples (some not wix 
specific, but it does not matter), but here are some starting points for you:
   
  http://msdn2.microsoft.com/En-US/library/aa370134.aspx
   
  http://www.wixwiki.com/index.php?title=Simple_Custom_Action_Dll
   
  That should get you started, plus it seems there are some threads in the 
archive for this mailing list, so you should be able to find some tips 
searching through that as well.
   
  Good luck,
  Ian.
   


-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu
Sent: Tuesday, 17 July 2007 7:37 AM
To: Mike Dimmick; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to call a .dll from wix with arguments?


  
  Does this mean I have to use only one argument by combining those two 
arguments?. You also said that "Your custom action will have to read any other 
information it needs from the install database using e.g. MsiGetProperty."

  What is meant by that?. Can you elaborate?.
   
  Any good examples?. Thank you very much.
   
  Srini
   


 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to call a .dll from wix with arguments?

2007-07-17 Thread srinivas nomu
I followed the first example and I am not getting the value into a control.
   
  Here is what I did:
   
   
  
  
   
   
   
  My installation sequence:
   
  
  
  
  
  
   
   
  I want to get the CDKEY value to test before actually running dll. However, 
my control does not fill with CDKEY. Here is the control tag.
   
   
   
  What am I doing wrong here. My execution sequence is wrong?. If so,how should 
I execute and what modifications should I do for my execute sequence.
   
  

Ian Stevenson <[EMAIL PROTECTED]> wrote:
  Hi Srini,
   
  The idea is that you don't explicitly pass any arguments to the function call 
(the only argument being the MSI handle that get's set by the installer), 
instead they are passed by a process of the installer setting up the necessary 
properties before the custom action is executed. Then within the DLL's function 
you make calls to MsiGetProperty() to get the "arguments" and do your 
processing. In a similar way, if you need some OUT arguments you use 
MsiSetProperty.
   
  If you google for MsiGetProperty you will find many examples (some not wix 
specific, but it does not matter), but here are some starting points for you:
   
  http://msdn2.microsoft.com/En-US/library/aa370134.aspx
   
  http://www.wixwiki.com/index.php?title=Simple_Custom_Action_Dll
   
  That should get you started, plus it seems there are some threads in the 
archive for this mailing list, so you should be able to find some tips 
searching through that as well.
   
  Good luck,
  Ian.
   


-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu
Sent: Tuesday, 17 July 2007 7:37 AM
To: Mike Dimmick; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to call a .dll from wix with arguments?


  
  Does this mean I have to use only one argument by combining those two 
arguments?. You also said that "Your custom action will have to read any other 
information it needs from the install database using e.g. MsiGetProperty."

  What is meant by that?. Can you elaborate?.
   
  Any good examples?. Thank you very much.
   
  Srini
   


 
-
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to call an exe

2007-07-17 Thread srinivas nomu
I really fed up working with .dll as there is no debug available. Now I created 
an .exe with the same code. 
   
  From the command line the usage is as folows:
  write.lic.exe 61177-1128925439-1187326800 9.0
   
  I need to pass the CD-Label key in the first argument and the version as 
second argument.
   
  I wrote the wix tag as follows:
   
   
  
  
   
  the sequence as follows:
  
  
  
  
   
   
  It compiles fine and links fine. When I execute the msi installer crashes. I 
donot know what is happening here. 
   
  Please somebody help me. Also, do I need to use "Binarykey" Or "FileKey" in 
Custom Action? and what is the difference between the two.
   
  
  
Thanks
  Srini
   

   
-
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to call an exe

2007-07-17 Thread srinivas nomu
But how should I call an exe with arguments?. Any Idea.
  I serached on web and could not find proper documents.
  Please anybody know help.
   
  Srini
   
  

"Pierson Lee (Volt)" <[EMAIL PROTECTED]> wrote:
v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  
w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
Binary Key -> takes a  tag with a dll/exe and will run it 
without extracting/installing it (the Binary is only valid at installtime)
  File key -> an extracted file that you need to access at install time also. 
This file will also be available after installation as per your  tag.
   
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu
Sent: Tuesday, July 17, 2007 2:33 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to call an exe

   
I really fed up working with .dll as there is no debug available. Now I 
created an .exe with the same code. 

 

From the command line the usage is as folows:

write.lic.exe 61177-1128925439-1187326800 9.0

 

I need to pass the CD-Label key in the first argument and the version as 
second argument.

 

I wrote the wix tag as follows:

 

 



 

the sequence as follows:









 

 

It compiles fine and links fine. When I execute the msi installer crashes. 
I donot know what is happening here. 

 

Please somebody help me. Also, do I need to use "Binarykey" Or "FileKey" in 
Custom Action? and what is the difference between the two.

 




Thanks

Srini

 



-
  
  Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.



   
-
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to call an exe

2007-07-17 Thread srinivas nomu
I think I will use Binarykey as this file is only needed at install time which 
generates an unique license file. After that the purpose is nill for this file.
   
  Srini
   
   
  But how should I call an exe with arguments?. Any Idea.
  I serached on web and could not find proper documents.
  Please anybody know help.
   
  Srini
   
  

"Pierson Lee (Volt)" <[EMAIL PROTECTED]> wrote:
v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  
w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}
Binary Key -> takes a  tag with a dll/exe and will run it 
without extracting/installing it (the Binary is only valid at installtime)
  File key -> an extracted file that you need to access at install time also. 
This file will also be available after installation as per your  tag.
   
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of srinivas nomu
Sent: Tuesday, July 17, 2007 2:33 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to call an exe

   
I really fed up working with .dll as there is no debug available. Now I 
created an .exe with the same code. 

 

From the command line the usage is as folows:

write.lic.exe 61177-1128925439-1187326800 9.0

 

I need to pass the CD-Label key in the first argument and the version as 
second argument.

 

I wrote the wix tag as follows:

 

 



 

the sequence as follows:









 

 

It compiles fine and links fine. When I execute the msi installer crashes. 
I donot know what is happening here. 

 

Please somebody help me. Also, do I need to use "Binarykey" Or "FileKey" in 
Custom Action? and what is the difference between the two.

 




Thanks

Srini

 



-
  
  Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.



   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to delete a file that has created by an external program.

2007-07-19 Thread srinivas nomu
I am now successfully call an exe to write a license.dat file. However, I have 
a small problem.
  1) When I unistall how should I delete manually this file?.
  I used this code, since I have to write to this directory, I need to create a 
directory in wix itself under Appluication data. Now when Uninstall since it 
cannot delete the top folder "qsystems" as it will have the license file. So, 
it cannot delete the top level folder. Since there is no reference for this 
file that has created by the extrenal program, how should I delete this file. 
The following code does not work. 
   
  
   
   
   
   

   
   
   
   
   
   
   

   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 
   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. -
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to create a directory structure type of short cut?

2007-08-02 Thread srinivas nomu
I am trying to create a short cut with the structure as follows:
   
  Start-> Programs->Main program
  Under "Main Program" have three sub-categries
  Program 1
  Program 2
  Program3
  Again Program 1 has 6 entries where I actually point to the fileID's.
   
  I tried to create a dummy component without any files and create a short cut 
for "Main program", however Wix is not creating that shortcut.
  It creates shortcut only when file exists.
   
  I tried with the sample wixshortcut program "Shortcut.wxs"
   
   
  My questions are as follows:
   
  1) In the following why is this shortcut is not executing:
   
  
  
  
  
   
  2) How should I create a shortcut like this
  Start->Program files->WIXSC->Test Shortcut
   
  Any help is appreciated:
   
  Srini
   
   
  The shortcut.wxs looks like this:
   
   
  
  
  
  
  
  
  
  
  
   
   
  
  
  
  
   
   
  
  
  
  
  
   
   
  
  
  
  
  
  
  
  
  
  
   
   
   
   

   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. -
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Simple Question: Passing parameter to a propertyId

2007-08-03 Thread srinivas nomu
 Hi
  I want to pass a parameter value to some other application. The parameter is 
"TARGETDIR". When I retrive this value into a text item it shows up the value 
correctly. However, when I declare a property Id and try to use that 
PropertyId,it gives value as "TARGETDIR" and not the actual path. Here is how I 
defined the property id:
   
  Value="![CDATA[TARGETDIR]]"/>
   
  When I use catalina it gives as "TARGETDIR".
  In a control Text, it shows as whatever I set the target path.(For ex: 
C:\Program files).
   
  What should I do to get the value of TARGETDIR into this propertyId.
   
  Please help as I am new to WIX. Thanks for any help.
   
  Srini
   
   

   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users