|
|
|
start date: Mon, 23 Jul 2007 06:02:44 -0700,
posted on: microsoft.public.dotnet.framework.compactframework
back
| Thread Index |
|
1
Buthrakaur
|
|
2
Christian Resma Helle
|
autorun from SD card - how to determine the original autorun directory
Hello, I'm trying to develop an autorun application, which will
perform some actions (copy files, install cabs, setup registry etc)
described in XML file located in the same directory as the autorun.exe
file. The problem is that I'm not able to get path the autorun
application on storage card using something like
Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName -
this returns \Windows\Autorun. It seems that the OS copies the
autorun.exe file to internal memory and then executes it, but then I'm
not able to find out easily where the original autorun.exe file is
located. Is there any better method than searching the storage card
for the original autorun? I tried to search this group, but didn't
found anything dealing with this problem....
Date:Mon, 23 Jul 2007 06:02:44 -0700
Author:
|
Re: autorun from SD card - how to determine the original autorun directory
Try P/Invoking SHGetAutoRunPath() from aygshell.dll
Here's a link to the MSDN Documentation for SHGetAutoRunPath:
http://msdn2.microsoft.com/en-us/library/aa932541.aspx
--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com
"Buthrakaur" wrote in message
news:1185195764.000812.300570@n2g2000hse.googlegroups.com...
> Hello, I'm trying to develop an autorun application, which will
> perform some actions (copy files, install cabs, setup registry etc)
> described in XML file located in the same directory as the autorun.exe
> file. The problem is that I'm not able to get path the autorun
> application on storage card using something like
> Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName -
> this returns \Windows\Autorun. It seems that the OS copies the
> autorun.exe file to internal memory and then executes it, but then I'm
> not able to find out easily where the original autorun.exe file is
> located. Is there any better method than searching the storage card
> for the original autorun? I tried to search this group, but didn't
> found anything dealing with this problem....
>
Date:Mon, 23 Jul 2007 16:35:34 +0200
Author:
|
|
|