Jump to content

Recommended Posts

Posted

Hello all

This is my first post here so forgive me if I screw anything up.

I think this is the right place to post this problem, any help would be greatly appreciated.

What I am doing is creating an installer for an exe and a pre packaged installer, this is not by choice I am doing it for work and I am stuck with what they gave me.

The Problem:

I have the installer up and working, But it is messy so I created a batch file to delete a few things, the batch file deletes everything it is supposed to except shortcuts on the desktop.

Here is my batch file:

@ECHO on

COPY C:\Exponent\Websem.DAT "C:\WebSEM" /Y /V

DEL "C:\Exponent\unins000.dat"

DEL "C:\Exponent\unins000.exe"

DEL "C:\Exponent\Websem.DAT"

DEL "C:\Exponent\WebSEM.EXE"

DEL "C:\Exponent\infoafter.txt"

Pause

DEL "%userprofile%\Desktop\clean"

Pause

DEL "%userprofile%\Desktop\vidpatch"

Pause

DEL "C:\Exponent\cleanup.bat"

The pause's are just so I can see the errors.

Error= cannot find file

What do I need to do to make this delete the shortcuts

also I have not done any batch files or progrmming for at least ten years.

Thanks in advance.

Lokinb


Posted

It must appends the ".lnk" to name...

DEL "%userprofile%\Desktop\clean.lnk" 
Pause
DEL "%userprofile%\Desktop\vidpatch.lnk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...