Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I wish to create a patch for my project using visual studio (2008 - .net 3.5) instead of delivering a new installer for each build. I went through the following article
How to create installation patches for VS.NET deployment projects[^]
and followed the steps provided there, after installing SDK. But I was unable to complete this task without errors. The result of this is given below.

C#
D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if "" == "" "D:\MyApp\
MyLook\MyLookAddin\MyAppSetup\patch.cmd" Debug Release Done

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if "Debug" == "" "D:\Consult
rack\MyLook\MyLookAddin\MyAppSetup\patch.cmd" Debug Release Done

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if "Debug" == "Done" goto end

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if not exist Debug\*.msi goto nopatch

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>shift

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>goto loop

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if "Release" == "Done" gotoend

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if not exist Release\*.msi goto nopatch

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if not exist TargetImage\Release\*.msi goto nopatch

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>rmdir /s /q C:\~VSTMP

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>mkdir C:\~VSTMP
Access is denied.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>mkdir C:\~VSTMP \TargetImage

Access is denied.
Error occurred while processing: C:\~VSTMP.
A subdirectory or file \TargetImage already exists.
Error occurred while processing: \TargetImage.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>mkdir C:\~VSTMP \UpgradedImage
Access is denied.
Error occurred while processing: C:\~VSTMP.
A subdirectory or file \UpgradedImage already exists.
Error occurred while processing: \UpgradedImage.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>mkdir C:\~VSTMP \Patch
Access is denied.
Error occurred while processing: C:\~VSTMP.
A subdirectory or file \Patch already exists.
Error occurred while processing: \Patch.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>for %a in (TargetImage\Relea
se\*.msi) do copy %a C:\~VSTMP \MyLookComponent 3.0.1.2.msi

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>copy TargetImage\Release\Out
lookComponent 3.0.1.2.msi C:\~VSTMP \MyLookComponent 3.0.1.2.msi
The system cannot find the file specified.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>msiexec /qb /a C:\~VSTMP \Ou
tlookComponent 3.0.1.2.msi TARGETDIR=C:\~VSTMP \TargetImage /L*v C:\~VSTMP 
\TargetImage\MyLookComponent 3.0.1.2.log

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>del C:\~VSTMP \MyLookComponent 3.0.1.2.msi
Could Not Find D:\MyLookComponent
Could Not Find D:\MyApp\MyLook\MyLookAddin\MyAppSetup\3.0.1.2.msi

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>for %a in (Release\*.msi) do copy %a C:\~VSTMP \MyLookComponent 3.0.1.2.msi

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>copy Release\MyLookComponent 3.0.1.2.msi C:\~VSTMP \MyLookComponent 3.0.1.2.msi
The system cannot find the file specified.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>msiexec /qb /a C:\~VSTMP \OutlookComponent 3.0.1.2.msi 
TARGETDIR=C:\~VSTMP \UpgradedImage /L*v C:\~VSTMP \UpgradedImage\MyLookComponent 3.0.1.2.log

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>del C:\~VSTMP \MyLookComponent 3.0.1.2.msi
Could Not Find D:\MyLookComponent
Could Not Find D:\MyApp\MyLook\MyLookAddin\MyAppSetup\3.0.1.2.msi

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>copy patch.pcp C:\~VSTMP
The system cannot find the file specified.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>set PatchDir=D:\MyApp\
MyLook\MyLookAddin\MyAppSetup

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>chdir C:\~VSTMP
Access is denied.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>msimsp -s patch.pcp -p Patch\patch.msp -l Patch\patch.log -f C:\~VSTMP \Tmp -d
'msimsp' is not recognized as an internal or external command,operable program or batch file.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>rmdir /s /q C:\~VSTMP \TargetImage
Access is denied.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>rmdir /s /q C:\~VSTMP \UpgradedImage
Access is denied.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>rmdir /s /q C:\~VSTMP \Tmp

Access is denied.
The system cannot find the file specified.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>chdir D:\MyApp\MyLook
\MyLookAddin\MyAppSetup

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>mkdir Patch
A subdirectory or file Patch already exists.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>mkdir Patch\Release
A subdirectory or file Patch\Release already exists.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>copy C:\~VSTMP \Patch\*.* Patch\Release\*.*
Access is denied.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>rmdir /s /q C:\~VSTMP
Access is denied.

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>shift

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>goto loop

D:\MyApp\MyLook\MyLookAddin\MyAppSetup>if "Done" == "Done" goto end


D:\MyApp\MyLook\MyLookAddin\MyAppSetup>pause
Press any key to continue . . .


How to figure it out?

Thanks & Regards
Sebastian
Posted
Comments
ZurdoDev 26-Nov-13 7:37am    
Tons of errors pointing to permissions and missing files.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900