On Nov 8, 7:06 am, "Bill Stelzel" <bstel...@hotmail.com> wrote:
> I meant "%AppName%" as the name of the subdir in the deployment project -- I
> must learn to proofread before hitting send 
>
> "Bill Stelzel" <bstel...@hotmail.com> wrote in message
>
> news:A790B7B9-AB29-465A-A1D2-(E-Mail Removed)...
>
>
>
> > When you create the subdir in the deployment project give it the name
> > "%AppName" (without the quotes). Upon installation this will be replaced
> > with your application name. If you look in the generated .inf file you
> > should see something like....
>
> > [DestinationDirs]
> > Shortcuts=0,%CE2%\Start Menu
> > Files.Common1=0,"%CE5%\%AppName%"
> > Files.Common2=0,"%InstallDir%"
>
> > [Files.Common1]
> > "XMLFile1.xml","XMLFile1.xml",,0
>
> > [Files.Common2]
> > "DeviceApplication3.exe","DeviceApplication3.exe",,0
>
> > The device installer handles expanding the %xxx% variables upon
> > installation.
>
> > Hope you find this useful,
> > Bill
>
> > <doola...@gmail.com> wrote in message
> >news:(E-Mail Removed)...
> >> Hello,
>
> >> I need to deploy a settings file in a subdir of the special directory
> >> My Documents. I want the name of that subdir to be the name of the
> >> application. How can I do that?
>
> >> For example. The name of the application is TestSettings.exe and the
> >> name of the file is test.xml. I want test.xml have a path of My
> >> Documents/TestSettings/test.xml
>
> >> I know I can create the subdir in the deployment project and give it a
> >> name by hand. However I want to do it dynamically, based on the
> >> applicationname.
>
> >> Thanks in advance,
>
> >> Jan- Hide quoted text -
>
> - Show quoted text -
Hi, Bill
Thanks for this tip, it works. the only thing one has to take into
account is that the ProductName property in the cab-project must be
the samne as in the 'orignal' application. the default is the name of
the cab-project.
Again, thanks
Jan