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

2014-12-08 Thread Phil Wilson
There is a collection of standard properties that Windows Installer supplies: http://msdn.microsoft.com/en-us/library/aa370905(v=vs.85).aspx about the system, the install state, standard folders etc. --- Phil Wilson On Sun, Dec 7, 2014 at 6:59 AM, Sarvagya Pant wrote: > Yes this wo

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

2014-12-07 Thread Sarvagya Pant
Yes this worked. Thank you. Yet there was another solution given to me on stackoverflow. I could use session["LocalAppDataFolder"] in my code to get directly the value. I could not get how the LocalAppDataFolder is being accessed as property even though I haven't passed it. Is there any reference o

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

2014-12-07 Thread Sean Hall
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 wrote: > ​I have been making a MSI Installer that can get the value of property > passed to it and write a Config file. I am supp

[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 S