"Vivek Thakur" <vivekatvivekthakur(donotspam)com> wrote in message
news:75BB15E7-B6A0-40B9-A0C6-CF7A3985764B@microsoft.com...
> Phil,
>
> thanks a lot!! sometimes solutions can be so simple..but i am wondering
> why
> isnt this documented anywhere.?? i did alot of rnd for this and didnt get
> any useful thing..i got targetdir and assemblypath parameters but not
> sourcedir..
>
> anyways is shud ve used my brains..lol..
>
> thanks a lot once again.,.,
> --
> Vivek Thakur (MCP)
>
www.vivekthakur.com >
>
> "Phil Wilson" wrote:
>
>> I think you're saying that you want to copy some files that are in the
>> same
>> directory as your MSI file. If so, pass [SourceDir] into your
>> CustomActionData - that's the location of your MSI file.
>> --
>> Phil Wilson [MVP Windows Installer]
>> ----
>> "Vivek Thakur" <vivekatvivekthakur(donotspam)com> wrote in message
>> news:5EFDE134-D93F-455C-A43A-9C5E44E8A07C@microsoft.com...
>> > Phil,
>> >
>> > thanks for yr response, but i cant use targetdir here as i want to knw
>> > the
>> > path *before* i have installed my app. Also, its like, i have to read
>> > some
>> > files from the folder *where my setup is present*, and not from where
>> > it
>> > wud
>> > get installed. But i cant use app.path as it gives me the path of
>> > msiexec
>> > in
>> > system32 folder.
>> >
>> > please advise some way.
>> >
>> > thanks,
>> > --
>> > Vivek Thakur (MCP)
>> >
www.vivekthakur.com >> >
>> >
>> > "Phil Wilson" wrote:
>> >
>> >> If you've installed the file in the application folder in the setup
>> >> project,
>> >> this is identified by the TARGETDIR property. So pass [TARGETDIR] into
>> >> your
>> >> custom action (via CustomActionData) and it will be the path to your
>> >> directory.
>> >> --
>> >> Phil Wilson
>> >> [Microsoft MVP-Windows Installer]
>> >> Definitive Guide to Windows Installer
>> >>
http://apress.com/book/bookDisplay.html?bID=280 >> >>
>> >> "Vivek Thakur" <vivekatvivekthakur(donotspam)com> wrote in message
>> >> news:6674A6D8-893C-4D44-89FA-A1E735513E3D@microsoft.com...
>> >> > hi,
>> >> >
>> >> > i have a setup project and have a custom install class where i have
>> >> > this
>> >> > method wich tries to find a file named X.txt which is in the same
>> >> > folder
>> >> > as
>> >> > the current msi (wich i double clicked).
>> >> >
>> >> > now i want to copy this X.txt to a location in C:\. For that i
>> >> > created
>> >> > the
>> >> > custom install action class and wrote a method, but i cant access
>> >> > the
>> >> > current
>> >> > directory if i use application.path or other methods to get the
>> >> > current
>> >> > directory. it always give me c:\windows\system32, which i think is
>> >> > logical
>> >> > as
>> >> > my setup calls msiexec.exe which is in the windows\system32 folder.
>> >> >
>> >> > is there any way to know where my msi exe is?
>> >> > --
>> >> > Vivek Thakur (MCP)
>> >> >
www.vivekthakur.com >> >>
>> >>
>> >>
>>
>>
>>