Dear all i created a batch file which uninstall my application .. my problem is this uninstallation deleted some files and keeps others for example i created a folder in C:\Documents and settings\User-Name\myCompanyName\My Application name\ this folder contains all files for my application now when i uninstall all these files are deleted but i want to delete "myCompanyName" folder too from "C:\Documents and settings\User-Name"
also another problem related to the previouse is that i added a new folder to the start menu called myComapny this holes 4 files : exe file, config file, help file, and uninstall file now when i click on the uninstall file i removes everything but still keeps this folder in the startmenu containing the exe file, and config file...
so how to delete these unwanted folders through the batch file...
here is my batch file code:
@echo off
msiexec /x {DD75996F-C279-420A-9A19-48EF9EFE70C2}
RD /s "C:\Program Files\ASGATech"
RD /s "C:\Documents and Settings\%userprofile%\start menu\programs\ASGATech"
pause
NOTE: i tried to change the extension of the batch file from bat to cmd ... notice that i tried to get the current login user %userprofile% to go to his/her start menu ... if this way is wronge please inform me