开发者

How to Check for Absence of a File

I am trying to use nmake to create and then test my installer and uninstaller. While 开发者_开发技巧creation and uninstallation can be checked out of the box I cannot figure out how to check that a file got removed after uninstall.

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


make isn't very good at representing negative logic.

The standard workaround, I believe, is to create a dummy file:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜