Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ExecuteOnReinstall attribute for SystemTools - TemplateFile #21

Merged
merged 1 commit into from
Sep 15, 2015

Conversation

wojwal
Copy link
Contributor

@wojwal wojwal commented Sep 15, 2015

Hi there ;)

I needed this feature - in case of same MSI reinstallation or repair - my template file was not changed.

Now it's working fine - I tested it... Pls merge the changes. Thanks ;)


bool execute = execute_per_condition && (
(execute_per_component_install && (attributes & ExecuteOnInstall) && msiInstall.IsInstalling())
|| (execute_per_component_uninstall && (attributes & ExecuteOnUnInstall) && msiInstall.IsUnInstalling())
|| (execute_per_component_reinstall && (attributes & ExecuteOnReInstall) && msiInstall.IsReInstalling())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something going on here with tabs/spaces.

@dblock
Copy link
Owner

dblock commented Sep 15, 2015

It's good. It needs a CHANGELOG entry please (via --amend, squashed), fix the tab/space thing. See i you can write a test for this one, too, but I would merge it without.

@wojwal
Copy link
Contributor Author

wojwal commented Sep 15, 2015

Ok - fixed the tabs and added changelog...

@dblock
Copy link
Owner

dblock commented Sep 15, 2015

Could you squash these commits please?

@wojwal
Copy link
Contributor Author

wojwal commented Sep 15, 2015

Done... But pls hold with merging for a while... I want to check sth...

@dblock
Copy link
Owner

dblock commented Sep 15, 2015

Alright, holding.

@wojwal
Copy link
Contributor Author

wojwal commented Sep 15, 2015

Nope - all is fine - you can merge...

I had another issue - the file path I am templating need to have double slashes (and I'm using [INSTALLDIR] in WiX). But it seems the author of the project I'm working on just modified msiext for double slashes and made custom build. So now when I build from master branch it's single slash again.

I may create another pull request shortly that will add "DoubleSlash" option for TemplateFileProperty

dblock added a commit that referenced this pull request Sep 15, 2015
Adding ExecuteOnReinstall attribute for SystemTools - TemplateFile
@dblock dblock merged commit 613a80f into dblock:master Sep 15, 2015
@dblock
Copy link
Owner

dblock commented Sep 15, 2015

DoubleSlash sounds like a hack, doubt it will fly here ;)

@dblock
Copy link
Owner

dblock commented Sep 15, 2015

Merged, thanks for contributing! I will plan to do a release soon, haven't been using this project in a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants