Home All Groups Group Topic Archive Search About

Deleteing all files from target folder as a presetup task

Author
20 Oct 2006 12:13 PM
Smokey Grindle
I need to ensure that there are NO files in the target folder of a setup
project, I want to delete anything in the folder first before the install
takes place (all from inside the installer program of course) how would I go
about writing a script for the Setup project to perform this custom action?
any info on how to do anything like this would help a lot! I cant find much
useful stuff on google, I think I just dont know exactly what to look for..
thanks!

Author
20 Oct 2006 2:47 PM
Steve Long
Google this:
"Walkthrough: Using a Custom Action to Create a Database During
Installation"

At first, this may be a little hard getting into the head, but once you've
got it, it's pretty awesome what you can do with these custom actions just
by writing a little .dll assembly.

Steve

Show quoteHide quote
"Smokey Grindle" <nospam@dontspamme.com> wrote in message
news:eM0nZEE9GHA.4632@TK2MSFTNGP02.phx.gbl...
>I need to ensure that there are NO files in the target folder of a setup
>project, I want to delete anything in the folder first before the install
>takes place (all from inside the installer program of course) how would I
>go about writing a script for the Setup project to perform this custom
>action? any info on how to do anything like this would help a lot! I cant
>find much useful stuff on google, I think I just dont know exactly what to
>look for.. thanks!
>
Author
20 Oct 2006 5:55 PM
Smokey Grindle
awesome thanks, definatly was looking for the wrong thing in google..

Show quoteHide quote
"Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
news:upNvnsF9GHA.3348@TK2MSFTNGP03.phx.gbl...
> Google this:
> "Walkthrough: Using a Custom Action to Create a Database During
> Installation"
>
> At first, this may be a little hard getting into the head, but once you've
> got it, it's pretty awesome what you can do with these custom actions just
> by writing a little .dll assembly.
>
> Steve
>
> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
> news:eM0nZEE9GHA.4632@TK2MSFTNGP02.phx.gbl...
>>I need to ensure that there are NO files in the target folder of a setup
>>project, I want to delete anything in the folder first before the install
>>takes place (all from inside the installer program of course) how would I
>>go about writing a script for the Setup project to perform this custom
>>action? any info on how to do anything like this would help a lot! I cant
>>find much useful stuff on google, I think I just dont know exactly what to
>>look for.. thanks!
>>
>
>
Author
20 Oct 2006 5:59 PM
Smokey Grindle
One last question, how do you get the target location of the application? I
know its a tag, but I havent been able to find a list of them for some
reason [TARGET] is in my head but I cant figure out where to verify this,
thanks!

Show quoteHide quote
"Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
news:upNvnsF9GHA.3348@TK2MSFTNGP03.phx.gbl...
> Google this:
> "Walkthrough: Using a Custom Action to Create a Database During
> Installation"
>
> At first, this may be a little hard getting into the head, but once you've
> got it, it's pretty awesome what you can do with these custom actions just
> by writing a little .dll assembly.
>
> Steve
>
> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
> news:eM0nZEE9GHA.4632@TK2MSFTNGP02.phx.gbl...
>>I need to ensure that there are NO files in the target folder of a setup
>>project, I want to delete anything in the folder first before the install
>>takes place (all from inside the installer program of course) how would I
>>go about writing a script for the Setup project to perform this custom
>>action? any info on how to do anything like this would help a lot! I cant
>>find much useful stuff on google, I think I just dont know exactly what to
>>look for.. thanks!
>>
>
>
Author
20 Oct 2006 11:10 PM
Steve Long
Smokey,
I'm sorry this is in C#, it's what I wrote my custom action in. Maybe you
can convert it:

this.Context.Parameters["INSTALLDIR"]

VB is probably:
me.Context.Parameters("INSTALLDIR")

HTH
Steve
Show quoteHide quote
"Smokey Grindle" <nospam@dontspamme.com> wrote in message
news:u%23co5FH9GHA.4568@TK2MSFTNGP02.phx.gbl...
> One last question, how do you get the target location of the application?
> I know its a tag, but I havent been able to find a list of them for some
> reason [TARGET] is in my head but I cant figure out where to verify this,
> thanks!
>
> "Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
> news:upNvnsF9GHA.3348@TK2MSFTNGP03.phx.gbl...
>> Google this:
>> "Walkthrough: Using a Custom Action to Create a Database During
>> Installation"
>>
>> At first, this may be a little hard getting into the head, but once
>> you've got it, it's pretty awesome what you can do with these custom
>> actions just by writing a little .dll assembly.
>>
>> Steve
>>
>> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
>> news:eM0nZEE9GHA.4632@TK2MSFTNGP02.phx.gbl...
>>>I need to ensure that there are NO files in the target folder of a setup
>>>project, I want to delete anything in the folder first before the install
>>>takes place (all from inside the installer program of course) how would I
>>>go about writing a script for the Setup project to perform this custom
>>>action? any info on how to do anything like this would help a lot! I cant
>>>find much useful stuff on google, I think I just dont know exactly what
>>>to look for.. thanks!
>>>
>>
>>
>
>
Author
21 Oct 2006 12:56 AM
Smokey Grindel
any idea where there is a list of these paramaters?

Show quoteHide quote
"Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
news:eiHw$zJ9GHA.3384@TK2MSFTNGP05.phx.gbl...
> Smokey,
> I'm sorry this is in C#, it's what I wrote my custom action in. Maybe you
> can convert it:
>
> this.Context.Parameters["INSTALLDIR"]
>
> VB is probably:
> me.Context.Parameters("INSTALLDIR")
>
> HTH
> Steve
> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
> news:u%23co5FH9GHA.4568@TK2MSFTNGP02.phx.gbl...
>> One last question, how do you get the target location of the application?
>> I know its a tag, but I havent been able to find a list of them for some
>> reason [TARGET] is in my head but I cant figure out where to verify this,
>> thanks!
>>
>> "Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
>> news:upNvnsF9GHA.3348@TK2MSFTNGP03.phx.gbl...
>>> Google this:
>>> "Walkthrough: Using a Custom Action to Create a Database During
>>> Installation"
>>>
>>> At first, this may be a little hard getting into the head, but once
>>> you've got it, it's pretty awesome what you can do with these custom
>>> actions just by writing a little .dll assembly.
>>>
>>> Steve
>>>
>>> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
>>> news:eM0nZEE9GHA.4632@TK2MSFTNGP02.phx.gbl...
>>>>I need to ensure that there are NO files in the target folder of a setup
>>>>project, I want to delete anything in the folder first before the
>>>>install takes place (all from inside the installer program of course)
>>>>how would I go about writing a script for the Setup project to perform
>>>>this custom action? any info on how to do anything like this would help
>>>>a lot! I cant find much useful stuff on google, I think I just dont know
>>>>exactly what to look for.. thanks!
>>>>
>>>
>>>
>>
>>
>
>
Author
23 Oct 2006 7:06 PM
Steve Long
You know Smokey, I can remember how I figured that out, but, I'm thinking
you might be able to get the list by walking through the Parameters
collection and logging them, either to a log file or something.

Steve
Sorry I didn't check this over the weekend.


Show quoteHide quote
"Smokey Grindel" <nospam@nospam.net> wrote in message
news:uwjnEvK9GHA.4632@TK2MSFTNGP02.phx.gbl...
> any idea where there is a list of these paramaters?
>
> "Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
> news:eiHw$zJ9GHA.3384@TK2MSFTNGP05.phx.gbl...
>> Smokey,
>> I'm sorry this is in C#, it's what I wrote my custom action in. Maybe you
>> can convert it:
>>
>> this.Context.Parameters["INSTALLDIR"]
>>
>> VB is probably:
>> me.Context.Parameters("INSTALLDIR")
>>
>> HTH
>> Steve
>> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
>> news:u%23co5FH9GHA.4568@TK2MSFTNGP02.phx.gbl...
>>> One last question, how do you get the target location of the
>>> application? I know its a tag, but I havent been able to find a list of
>>> them for some reason [TARGET] is in my head but I cant figure out where
>>> to verify this, thanks!
>>>
>>> "Steve Long" <Steve_Noneya@NoSpam.com> wrote in message
>>> news:upNvnsF9GHA.3348@TK2MSFTNGP03.phx.gbl...
>>>> Google this:
>>>> "Walkthrough: Using a Custom Action to Create a Database During
>>>> Installation"
>>>>
>>>> At first, this may be a little hard getting into the head, but once
>>>> you've got it, it's pretty awesome what you can do with these custom
>>>> actions just by writing a little .dll assembly.
>>>>
>>>> Steve
>>>>
>>>> "Smokey Grindle" <nospam@dontspamme.com> wrote in message
>>>> news:eM0nZEE9GHA.4632@TK2MSFTNGP02.phx.gbl...
>>>>>I need to ensure that there are NO files in the target folder of a
>>>>>setup project, I want to delete anything in the folder first before the
>>>>>install takes place (all from inside the installer program of course)
>>>>>how would I go about writing a script for the Setup project to perform
>>>>>this custom action? any info on how to do anything like this would help
>>>>>a lot! I cant find much useful stuff on google, I think I just dont
>>>>>know exactly what to look for.. thanks!
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>