I have been making a MSI Installer that can get the value of property
passed to it and write a Config file. I am supposed to call MSI as:
msiexec /i myfile.msi /l*v output.txt IPADDRESS=192.168.1.1
and get value of IPADDRESS
I have following Wix C# Code that is supposed to work
namespace
on this?
On Sun, Dec 7, 2014 at 8:25 PM, Sean Hall r.sean.h...@gmail.com wrote:
You need to remove the CustomAction attribute from the SHGetFolderPath
method and put it on your WriteFileToDisk method.
On Sun, Dec 7, 2014 at 6:06 AM, Sarvagya Pant sarvagya.p...@gmail.com
wrote:
I have been
I have been making a Wix Installer that is supposed to install the contents
and fetches the parameters passed in terminal and create files. ie.
msiexec /i installer.msi /l*v out.log IPADDRESS=1.1.1.1 will create a
file lpa.config.
I have following wix file and custom action file.
WIX:
?xml
on uninstall?
-Original Message-
From: Sarvagya Pant [mailto:sarvagya.p...@gmail.com]
Sent: Wednesday, February 04, 2015 1:25 AM
To: General discussion about the WiX toolset.
Subject: [WiX-users] Custom action
System.IO.DirectoryNotFoundException on second Installation
I have been
I have created a custom action using C# .Net 4.0 that is supposed to get
the property passed to it and create a file eg:
msiexec /i somemsi.msi /l*v out.txt IPADDRESS=127.0.0.1
I have created both MSI that does the work. But as this MSI is to be
deployed to customers, I have following questions:
I have following wix file that is supposed to call the Custom Action during
the installation. The custom action will create some files required for
program. As Wix will only remove only those files that were installed by
installer, files created by Custom action will be leftover. So I am
resorting
Thanks all. It seems using c++ for Custom action would be a good choice.
Currently in my C# code I am using functions like string.IsNullOrEmpty,
string.Format, ServiceController. Are these functions available in C++.
Also to get the parameter passed to msi, I have to use
string ip =
I have following Wix File that is supposed to install the contents in
C:\SampleProgram . The generated msi is supposed to be installed as msiexec
/i installer.msi IPADDRESS=1.1.1.1. The parameter IPADDRESS is fetched by
Custom Action that will make a config file as below in the folder where
Sorry for earlier question, it was sent as mistake.
I have following Wix File that is supposed to install the contents in
C:\SampleProgram . The generated msi is supposed to be installed as msiexec
/i installer.msi IPADDRESS=1.1.1.1. The parameter IPADDRESS is fetched by
Custom Action that will
Hi Nir,
Thanks for the info. Does the CreateFolder / removes the main folder
where all my components will be installed. I should also be removing the
folder that could be created by the executable. ie consider apps and temp
inside the main folder. I tried:
RemoveFolder
myInstaller.msi /l*v out.txt PARAMETER=VALUE ...
I looked into other website, they gave information regarding GAC. I don't
know about them. If that is what is causing the problem, please do point me
in right direction.
Thanks,
Sarvagya Pant.
--
sarvagya
I have written a C# Custom Action that is supposed to get the Values of
Properties passed to the installer and create some config file. Since the
C# Custom action was done, my installer depends upon .Net too. I want to
avoid this dependency, thus I am opting to write the Custom action in C++.
into weird behaviour
(crashes, access violations, etc.) if I don't. This is true when running
in VS2010 and VS2013 compilers.
-Original Message-
From: Sarvagya Pant [mailto:sarvagya.p...@gmail.com]
Sent: March-13-15 1:40 PM
To: General discussion about the WiX toolset.
Subject: [WiX
I am attempting to install the dependency of my program
*vcredist_x86_2008.exe* and *vcredist_x86_2010.exe* from my msi before it
attempts to install the program itself. I have following piece of code.
Binary Id=SetupCA
Hi Nir, The Thing is that I do have the MSM for Visual Studio 2010 but my
project uses Openssl, built using VS 2008. I don't have the MSM for 2008.
So that was the issue of installing VCRedist.
On Thu, Feb 26, 2015 at 2:07 AM, Nir Bar nir@panel-sw.co.il wrote:
You should utilize the VS
@Nir Bar, I tried to Use Remove property instead of Installed. But the
Custom Action didn't Run when the Remove Property was set.
@Rob I tried to use util:RemoveFolderEx based on this link =
https://www.hass.de/content/wix-how-use-removefolderex-your-xml-scripts but
without using Registry
@Nir, Yep I figured that out. I used REMOVE~=ALL based on Rob's answer
given at http://stackoverflow.com/a/321874/2634612 .
On Tue, Mar 24, 2015 at 12:30 PM, Nir Bar nir@panel-sw.com wrote:
You should use REMOVE, not Remove - case matters.
-
Nir Bar
Freelance Developer
Mail:
:
RemoveFoldersEx?
_
Short replies here. Complete answers over there:
http://www.firegiant.com/
-Original Message-
From: Sarvagya Pant [mailto:sarvagya.p...@gmail.com]
Sent: Monday, March 23, 2015 9:05 AM
To: General
I need to Remove Folders as well. RemoveFile only works to delete the File,
I think so. The executable could create Folder within folder and files too.
On Mon, Mar 23, 2015 at 9:41 PM, Hoover, Jacob jacob.hoo...@greenheck.com
wrote:
Was there a reason you wrote a CA to remove the file? Would
I have created two custom actions that does the following jobs:
1. Create a file based on the property passed to the installer. eg
msiexec /i installer.msi /l*v out.txt IPADDRESS=192.168.2.2.08
The custom action will create a file that will contain the data as:
{
ip:192.168.2.208
}
2. Another
to create a folder and write into
Environment Path. Please correct the code. Thank you
--
*Sarvagya Pant*
*Kathmandu, Nepal*
*+9779803468257*
--
___
WiX-users mailing list
WiX-users
\ArkoInstaller\Product.wxs36
But once I use CommonAppDataFolder insted of LocalAppDataFolder, it
compiles correctly. Please correct me where I'm doing wrong.
Thank you
--
*Sarvagya Pant*
*Kathmandu, Nepal*
*+9779803468257
22 matches
Mail list logo