开发者

How to Check for Absence of a File

开发者 https://www.devze.com 2023-04-06 08:28 出处:网络
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 fi

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

精彩评论

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

关注公众号