[WiX-users] Using DllImport inside Wix Custom Action shows DLL Error

2014-12-07 Thread Sarvagya Pant
​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

Re: [WiX-users] Using DllImport inside Wix Custom Action shows DLL Error

2014-12-07 Thread Sarvagya Pant
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

[WiX-users] Custom action System.IO.DirectoryNotFoundException on second Installation

2015-02-03 Thread Sarvagya Pant
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

Re: [WiX-users] Custom action System.IO.DirectoryNotFoundException on second Installation

2015-02-04 Thread Sarvagya Pant
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

[WiX-users] Custom action without having to install .net

2015-02-17 Thread Sarvagya Pant
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:

[WiX-users] Wix RemoveFile for removing leftovers

2015-02-11 Thread Sarvagya Pant
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

Re: [WiX-users] Custom action without having to install .net

2015-02-18 Thread Sarvagya Pant
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 =

[WiX-users] MSI Installer doesn't Installs file though it runs the Custom Action

2015-01-09 Thread Sarvagya Pant
​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

[WiX-users] Msi Installer Runs custom Action but leaves File for Installation

2015-01-09 Thread Sarvagya Pant
​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

Re: [WiX-users] Wix RemoveFile for removing leftovers

2015-02-12 Thread Sarvagya Pant
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

[WiX-users] Error 1920. Service 'SomeService' failed to start

2015-03-12 Thread Sarvagya Pant
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

[WiX-users] Writing a C++ Custom Action Project

2015-03-13 Thread Sarvagya Pant
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++.

Re: [WiX-users] Writing a C++ Custom Action Project

2015-03-13 Thread Sarvagya Pant
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

[WiX-users] Installing the Visual Studio Redistributable from within MSI Failing

2015-02-25 Thread Sarvagya Pant
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

Re: [WiX-users] Installing the Visual Studio Redistributable from within MSI Failing

2015-02-25 Thread Sarvagya Pant
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

Re: [WiX-users] Prevent run of Custom action if product is installed.

2015-03-23 Thread Sarvagya Pant
@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

Re: [WiX-users] Prevent run of Custom action if product is installed.

2015-03-24 Thread Sarvagya Pant
@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:

Re: [WiX-users] Prevent run of Custom action if product is installed.

2015-03-23 Thread Sarvagya Pant
: 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

Re: [WiX-users] Prevent run of Custom action if product is installed.

2015-03-23 Thread Sarvagya Pant
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

[WiX-users] Prevent run of Custom action if product is installed.

2015-03-23 Thread Sarvagya Pant
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

[WiX-users] Creating a folder in Common App Data Folder Windows

2015-06-16 Thread Sarvagya Pant
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

[WiX-users] Installer to write Data in LocalAppDataFolder

2015-07-21 Thread Sarvagya Pant
\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