2011-09-19 60 views
0

我正在嘗試使用nmake創建,然後測試我的安裝程序和卸載程序。雖然可以檢查創建和卸載,但我無法弄清楚如何檢查卸載後文件是否被刪除。如何檢查缺少文件

感謝 HG

?: InstalledFile.txt 
     Setup.exe --uninstall 

    InstalledFile.txt: Installer 
     Setup.exe 

    Installer: Setup.exe 
     InstallerAssembler.py -p=Complex.xml -t=Complex 

    Setup.exe: 
     p4 sync $(VIEW) 
     devenv ... 

回答

2

make是不是表示負邏輯非常好。

標準的解決方法,我認爲,是創建一個虛擬文件:

InstalledFile.txt.isabsent: 
    (some command that creates the target if InstalledFile.txt does not exist, and fails otherwise) 
+0

是的,看起來像唯一的出路就是用auxillary utils的。 – Himanshu