cheesebugah
asked on
App install through GP and cmd shell
Hello,
I am attempting to install an application through group policy. Actually, I am attempting to upgrade an application that is already installed through GP. I have the .cmd file that was used to install the application. It looks for an existing file on the user's C drive and either installs or does nothing depending on whether the file exists or not. If the file exists it means the application is already installed. The problem with the upgrade is that there is no discernable indicator to point to after the upgrade to tell the .cmd file that the program is upgraded. There's no registry indicators and no difference in the install directory. What I have in mind is to create a small text file with the upgrade on the user's C drive and have the .cmd file look for that to determine whether to run the upgrade or not. I cannot figure out how to create a simple text file on the user's C drive through the .cmd file. I will attach the existing .cmd file so you can see what I have and hopefully we can come up with an easy way to do this.
Thanks,
Cheese
centennial.cmd
I am attempting to install an application through group policy. Actually, I am attempting to upgrade an application that is already installed through GP. I have the .cmd file that was used to install the application. It looks for an existing file on the user's C drive and either installs or does nothing depending on whether the file exists or not. If the file exists it means the application is already installed. The problem with the upgrade is that there is no discernable indicator to point to after the upgrade to tell the .cmd file that the program is upgraded. There's no registry indicators and no difference in the install directory. What I have in mind is to create a small text file with the upgrade on the user's C drive and have the .cmd file look for that to determine whether to run the upgrade or not. I cannot figure out how to create a simple text file on the user's C drive through the .cmd file. I will attach the existing .cmd file so you can see what I have and hopefully we can come up with an easy way to do this.
Thanks,
Cheese
centennial.cmd
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nappy_d,
So, instead of the .cmd file that I've used in the past to install this program, you want me to use a .bat file? Does it really matter if the file is a batch or command file?
Thanks,
Cheese
So, instead of the .cmd file that I've used in the past to install this program, you want me to use a .bat file? Does it really matter if the file is a batch or command file?
Thanks,
Cheese
I've always used ".bat"
ASKER
nappy_d,
Are you sure the logic is correct? Here's my interpretation. If the file doesn't exist, copy it to the location, otherwise run the upgrade. Shouldn't it be if the file doesn't exist, copy the file to the location and run the upgrade, otherwise do nothing.
Thanks,
Cheese
Are you sure the logic is correct? Here's my interpretation. If the file doesn't exist, copy it to the location, otherwise run the upgrade. Shouldn't it be if the file doesn't exist, copy the file to the location and run the upgrade, otherwise do nothing.
Thanks,
Cheese
ASKER
Or, if the file exists, do nothing. Otherwise copy the file to the location and run the upgrade.
ASKER
I like it!
I'll test it out today and let you know.
Thanks,
Cheese