Re: [WiX-users] Create text file

2015-03-20 Thread Phill Hogland
I started researching a similar problem related to a java app that required
the setup to modify java.props files, which are similar to ini files without
sections.  I tabled that effort for now, as there is a higher level business
discussion about terminating the java app and replacing it with a new .Net
app (I wish!).  However while researching the text file issue I came across
Bob's post  here  
, which is a bit dated, but was helpful in creating a semi-custom action for
another purpose.  Bob uses the Ini File issue as the example.  The prototype
of one the functions is no longer correct, but it was easy to track that
issue down by looking at the many examples in the wix source of doing
similar semi-custom actions.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Create-text-file-tp7599642p7599652.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Create text file

2015-03-20 Thread Jeremiahf
Don't forget about the encoding of the file!

On Fri, Mar 20, 2015 at 2:32 PM, Phil Wilson  wrote:

> Windows Installer doesn't provide that functionality, so writing to
> the file with a custom action is the only way to do it, so it can't be
> wrong if you do it with a CA and right if WiX supplied a CA for it :)
>
> If the ini file information about the installtion contains data like
> the ProductVersion, install location etc then longer term maybe teach
> the app how to use APIs like MsiGetProductInfo() to get that
> information directly from Windows.
> ---
> Phil Wilson
>
>
> On Fri, Mar 20, 2015 at 10:09 AM, Lars  wrote:
> > That is a separate issue and not possible in our system without major
> changes.
> > kind regards, Lars
> >
> >> From: bwhee...@dshs.wa.gov
> >> To: wix-users@lists.sourceforge.net
> >> Date: Fri, 20 Mar 2015 15:15:53 +
> >> Subject: Re: [WiX-users] Create text file
> >>
> >> On the whole, an ini file is best created on the first run of the
> application.  This avoids the whole - user context and folder privilege
> challenge since ini's often have user specific settings they should be
> stored per user and not per application
> >>
> >>
> >> -----Original Message-----
> >> From: Lars [mailto:laasu...@hotmail.com]
> >> Sent: Friday, March 20, 2015 7:34 AM
> >> To: wix-users@lists.sourceforge.net
> >> Subject: [WiX-users] Create text file
> >>
> >> Hello,
> >>
> >> I would like our installer to a create text file (actually an .ini file
> without any sections) with installation specific information included.
> >>
> >> The IniFile element obviously wont work due to requiring sections.
> >>
> >> One solution would be to pipe the required information to a file using
> custom actions but this seems very wrong.
> >>
> >> Would like to avoid using third party add-ons.
> >>
> >> Does Wix Toolset have any plans to add a feature that would help solve
> this issue? For example: A generic write to file element.
> >>
> >> kind regards, Lars
> >>
> >>
> --
> >> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> >> ___
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >>
> --
> >> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> >> by Intel and developed in partnership with Slashdot Media, is your hub
> for all
> >> things parallel software development, from weekly thought leadership
> blogs to
> >> news, videos, case studies, tutorials and more. Take a look and join the
> >> conversation now. http://goparallel.sourceforge.net/
> >> ___
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> --
> > Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> > by Intel and developed in partnership with Slashdot Media, is your hub
> for all
> > things parallel software development, from weekly thought leadership
> blogs to
> > news, videos, case studies, tutorials and more. Take a look and join the
> > conversation now. http://goparallel.sourceforge.net/
> > ___
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and

Re: [WiX-users] Create text file

2015-03-20 Thread Phil Wilson
Windows Installer doesn't provide that functionality, so writing to
the file with a custom action is the only way to do it, so it can't be
wrong if you do it with a CA and right if WiX supplied a CA for it :)

If the ini file information about the installtion contains data like
the ProductVersion, install location etc then longer term maybe teach
the app how to use APIs like MsiGetProductInfo() to get that
information directly from Windows.
---
Phil Wilson


On Fri, Mar 20, 2015 at 10:09 AM, Lars  wrote:
> That is a separate issue and not possible in our system without major changes.
> kind regards, Lars
>
>> From: bwhee...@dshs.wa.gov
>> To: wix-users@lists.sourceforge.net
>> Date: Fri, 20 Mar 2015 15:15:53 +0000
>> Subject: Re: [WiX-users] Create text file
>>
>> On the whole, an ini file is best created on the first run of the 
>> application.  This avoids the whole - user context and folder privilege 
>> challenge since ini's often have user specific settings they should be 
>> stored per user and not per application
>>
>>
>> -Original Message-
>> From: Lars [mailto:laasu...@hotmail.com]
>> Sent: Friday, March 20, 2015 7:34 AM
>> To: wix-users@lists.sourceforge.net
>> Subject: [WiX-users] Create text file
>>
>> Hello,
>>
>> I would like our installer to a create text file (actually an .ini file 
>> without any sections) with installation specific information included.
>>
>> The IniFile element obviously wont work due to requiring sections.
>>
>> One solution would be to pipe the required information to a file using 
>> custom actions but this seems very wrong.
>>
>> Would like to avoid using third party add-ons.
>>
>> Does Wix Toolset have any plans to add a feature that would help solve this 
>> issue? For example: A generic write to file element.
>>
>> kind regards, Lars
>>
>> --
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored by Intel and developed in partnership with Slashdot Media, is your 
>> hub for all things parallel software development, from weekly thought 
>> leadership blogs to news, videos, case studies, tutorials and more. Take a 
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> ___
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>> --
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> ___
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Create text file

2015-03-20 Thread Lars
That is a separate issue and not possible in our system without major changes.
kind regards, Lars

> From: bwhee...@dshs.wa.gov
> To: wix-users@lists.sourceforge.net
> Date: Fri, 20 Mar 2015 15:15:53 +
> Subject: Re: [WiX-users] Create text file
> 
> On the whole, an ini file is best created on the first run of the 
> application.  This avoids the whole - user context and folder privilege 
> challenge since ini's often have user specific settings they should be stored 
> per user and not per application
> 
> 
> -Original Message-
> From: Lars [mailto:laasu...@hotmail.com] 
> Sent: Friday, March 20, 2015 7:34 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Create text file
> 
> Hello,
>  
> I would like our installer to a create text file (actually an .ini file 
> without any sections) with installation specific information included.
>  
> The IniFile element obviously wont work due to requiring sections.
>  
> One solution would be to pipe the required information to a file using custom 
> actions but this seems very wrong.
>  
> Would like to avoid using third party add-ons.
>  
> Does Wix Toolset have any plans to add a feature that would help solve this 
> issue? For example: A generic write to file element.
>  
> kind regards, Lars
> 
> --
> Dive into the World of Parallel Programming The Go Parallel Website, 
> sponsored by Intel and developed in partnership with Slashdot Media, is your 
> hub for all things parallel software development, from weekly thought 
> leadership blogs to news, videos, case studies, tutorials and more. Take a 
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
  
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Create text file

2015-03-20 Thread Wheeler, Blaine (DSHS/DCS)
On the whole, an ini file is best created on the first run of the application.  
This avoids the whole - user context and folder privilege challenge since ini's 
often have user specific settings they should be stored per user and not per 
application


-Original Message-
From: Lars [mailto:laasu...@hotmail.com] 
Sent: Friday, March 20, 2015 7:34 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Create text file

Hello,
 
I would like our installer to a create text file (actually an .ini file without 
any sections) with installation specific information included.
 
The IniFile element obviously wont work due to requiring sections.
 
One solution would be to pipe the required information to a file using custom 
actions but this seems very wrong.
 
Would like to avoid using third party add-ons.
 
Does Wix Toolset have any plans to add a feature that would help solve this 
issue? For example: A generic write to file element.
 
kind regards, Lars
  
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Create text file

2015-03-20 Thread Lars
Hello,
 
I would like our installer to a create text file (actually an .ini file without 
any sections) with installation specific information included.
 
The IniFile element obviously wont work due to requiring sections.
 
One solution would be to pipe the required information to a file using custom 
actions but this seems very wrong.
 
Would like to avoid using third party add-ons.
 
Does Wix Toolset have any plans to add a feature that would help solve this 
issue? For example: A generic write to file element.
 
kind regards, Lars
  
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users