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 ...
4

1 回答 1

2

make不太擅长表达否定逻辑。

我相信标准的解决方法是创建一个虚拟文件:

InstalledFile.txt.isabsent:
    (some command that creates the target if InstalledFile.txt does not exist, and fails otherwise)
于 2011-09-21T11:59:18.030 回答