{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/32617","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/32617/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/32617/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/32617/events","html_url":"https://github.com/saltstack/salt/issues/32617","id":148750809,"number":32617,"title":"No clear way to identify or refer to cache_dir in package specification in winrepo","user":{"login":"hrumph","id":3753323,"avatar_url":"https://avatars.githubusercontent.com/u/3753323?v=3","gravatar_id":"","url":"https://api.github.com/users/hrumph","html_url":"https://github.com/hrumph","followers_url":"https://api.github.com/users/hrumph/followers","following_url":"https://api.github.com/users/hrumph/following{/other_user}","gists_url":"https://api.github.com/users/hrumph/gists{/gist_id}","starred_url":"https://api.github.com/users/hrumph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrumph/subscriptions","organizations_url":"https://api.github.com/users/hrumph/orgs","repos_url":"https://api.github.com/users/hrumph/repos","events_url":"https://api.github.com/users/hrumph/events{/privacy}","received_events_url":"https://api.github.com/users/hrumph/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Pending%20Discussion","name":"Pending Discussion","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Question","name":"Question","color":"942192"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","html_url":"https://github.com/saltstack/salt/milestones/Blocked","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":384,"closed_issues":826,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2016-05-05T20:32:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-04-15T19:43:05Z","updated_at":"2016-05-06T00:33:03Z","closed_at":null,"body":"### Description of Issue/Question\r\nI am trying to create a package specification for windows office 2016 in salt.\r\nSome of the install flags may refer to a file in the installer's directory.\r\nThe documents do not mention any way at all of identifying \r\nor referring to the installer's cache directory in the install_flags and\r\nuninstall_flags in the spec.\r\n\r\n\r\n### Setup\r\n```sls\r\nms-office:\r\n    '16.0.4266.1001':\r\n         installer: salt://win/repo/ms_office/2013_x86/setup.exe\r\n         full_name: Microsoft Office Professional Plus 2016\r\n         reboot: False\r\n         cache_dir: True\r\n         install_flags: '/adminfile [cache_dir]/my_config.msp'\r\n         uninstaller: salt://win/repo/ms_office/2013_x86/setup.exe\r\n         uninstall_flags: '/uninstall ProPlus /adminfile [cache_dir]/my_config.msp '\r\n```\r\nI used [cache_dir] as a placeholder for where we have to refer to the cache dir.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/217318113","html_url":"https://github.com/saltstack/salt/issues/32617#issuecomment-217318113","issue_url":"https://api.github.com/repos/saltstack/salt/issues/32617","id":217318113,"user":{"login":"hrumph","id":3753323,"avatar_url":"https://avatars.githubusercontent.com/u/3753323?v=3","gravatar_id":"","url":"https://api.github.com/users/hrumph","html_url":"https://github.com/hrumph","followers_url":"https://api.github.com/users/hrumph/followers","following_url":"https://api.github.com/users/hrumph/following{/other_user}","gists_url":"https://api.github.com/users/hrumph/gists{/gist_id}","starred_url":"https://api.github.com/users/hrumph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrumph/subscriptions","organizations_url":"https://api.github.com/users/hrumph/orgs","repos_url":"https://api.github.com/users/hrumph/repos","events_url":"https://api.github.com/users/hrumph/events{/privacy}","received_events_url":"https://api.github.com/users/hrumph/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T00:33:03Z","updated_at":"2016-05-06T00:33:03Z","body":"@twangboy, Well I didn't need to do this in fact for windows office. The following formula worked fine\r\n\r\n```\r\nms-office:\r\n    '16.0.4266.1001':\r\n         installer: salt://win/ms-office/2016/setup.exe\r\n         full_name: Microsoft Office Professional Plus 2016\r\n         reboot: False\r\n         cache_dir: True\r\n         install_flags: '/adminfile mike_config.msp'\r\n         uninstaller: 'C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE16\\Office Setup Controller\\setup.exe'\r\n         uninstall_flags: '/uninstall PROPLUS /dll OSETUP.DLL'\r\n```\r\n\r\nDo you think this should temporarily go on the Wiki? Just because as salt is getting more and more featurefull, its making some quite expensive windows tools less and less relevant. The ability to remotely install/deinstall office with such clean elegance (which can be combined any which way with salt's state system) should cause people to take note."}}