Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all 1354 articles
Browse latest View live

New Post: .net Framework installation

$
0
0
Oh I don't think there's anything wrong with the SilentBootStrapper other than I wanted there to be some indication that the net framework was installing. And I wasn't sure what other types of bootstrapper applications are available because the one thing I thought of happened to be the abstract class that SilentBootstrapper and probably the others are built off of. So I just commented it out and hoped the default one would do so.

And the weekly build for Wix version 3.11 from July 4th does have the Netfx461web tag :D

The only thing that's not doing as its supposed to is that I still need to assign the bootstrapper output file name to it. If I don't it gives two errors with first one saying it exited with a code of -1 and the second one saying "The file name 'setup.exe' creates an insecure bundle. Windows will load unnecessary compatibility shims into a bundle with that file name. These compatibility shims can be DLL hijacked allowing attackers to compromise your customers' computer. Choose a different bundle file name."

Refusing to allow the name setup.exe is like when Microsoft suddenly decided we couldn't write to the directory our program is stored in. Very Annoying. Or when they decided to make it harder to use the registry. Which I ceased using back then because I thought it was going to become impossible like writing to the directory. Though I never returned to using it, I think they backed off that. Or with the new Windows 10 apps where you can't even load or save files without jumping through a gazillion hoops... Which is why I will continue to focus on the desktop till I can't.

Okay done ranting about Microsoft's decisions ;)

WixSharp is awesome. I remember when they first released Wix I was excited to have access to how Microsoft builds MSIs. Then I saw the xml, couldn't understand why anyone would want to type all that, and ran fast back to innosetup. Using c# to build is awesome. (since c# is my favorite language)

I'm not sure how to attach a project to this or Id include it.

New Post: .net Framework installation

$
0
0
> Okay done ranting about Microsoft's decisions ;)
Don't we all have something to say about it? I so know your pain :)

I am still strugling to see how just renaming your bootstrapper from setup.exe to my setup.exe is making it safer. Yes the error message hints that this prevents engaging the dodgy shims infrastructure. Wouldn't be more natural just to fix the shims?

It's so similar to MS prohibiting on Vista drag and drop to console app to improve security. Simply because drag and drop is build on top of clipboard infrastructure, which was vulnerable at that time. Why fix the vulnerability if we can make it harder for normal users to use the functionality the normal way? And ironically the hackers could use a raw clipboard if they need to.

Anyway, I believed it's entirely to the developers if they want to use potentially inconvenient "setup.exe". That is why Wix# does renaming on fly. Though it seems like in your case the work around somehow doesn't work. But I cannot reproduce the problem that is why I asked you for a test case. Can you please send it to this address:
Image

Thank you,
Oleg

New Post: .net Framework installation

$
0
0
I sent you a zip of the setup and the helloworld console app.

Oh yeah I forgot about the drag and drop vista one. Microsoft has done some real boneheaded decisions in the name of security over the years. Each one just more aggravating than the previous. ;)

And I agree we should be allowed to name things whatever we want. And write to our own directory!

It also annoys me that they force us to get code signing certificates or else they'll show a scary warning. If they really were concerned about origins of software, we should be able to create our own certificates and put them on our server. Then tell in the installer where our certificates are located. Then on install, it checks the certificate located on the server, verifies the signature on the program and then there's no hundreds of dollars of cost for something that takes all of 5 seconds to create and makes these CAs rich. Although luckily I found a couple weeks ago startssl and their $59 code signing certificate.

But I'm digressing again lol

New Post: .net Framework installation

$
0
0
lol I just checked my email and gmail refused to deliver it because of a security issue.

So I just uploaded it to google drive and shared it with that email.

New Post: .net Framework installation

$
0
0
> lol I just checked my email and gmail refused to deliver it because of a security issue.
Of course. Don't we all just love that. :)

A few useful tips: renaming .zip (e.g to .7z) would help. And also, Dropbox public folders allow single step (without extra authorization) access to the content.

And another good reason for not using zip is that on Windows it silently locks extracted .NET assemblies (of course for the sake of security). Thus effectively breaking your software without any single warning.

Mate, we can start another pure ranting thread :)

Anyway, will let you know the investigation outcome as soon as I get the google drive access permission.

New Post: msi + wmi and "Reboot" process

$
0
0
Hi,

I am trying to use the msi file along with the WMI system.
Using the Win32_Product class and the "Install" method of the WMI we able to install the msi file anywhere into network. The "Install" method works well.

In case of using the "Reinstall" method with the msi file I have got the problem/feature....
After reinstallation process the target machine goes to reboot. It not good in my case at all.

Do I have any way to prevent the rebooting of the machine during the reinslattation?
May be you can suggest any properties into your library to forbid the reboot?

New Post: msi + wmi and "Reboot" process

$
0
0
I have used the property REBOOT:
ManagedProject project = new ManagedProject("TestMsiAgent",
                        new Property("REBOOT", "ReallySuppress") {IsDeferred = true},
                        ...);
and it seems to work!

Is the property REBOOT=ReallySuppress solves the problem with rebooting the target machine?

New Post: msi + wmi and "Reboot" process

$
0
0
I am glad you solved it but the mystery remains. Why did it reboot? Wix# doesn't provide and direct facility for rebooting. May be it even should... but it doesn't. So you couldn't do it by accident. After some googling I got an impression that the nature of the install may trigger it (e.g. installing drivers). Also it is evident that "...the installer automatically prompts for a restart if it needs to replace any files in use during the installation." and upgrade falls under this very scenario.

I would like to incorporate your work around into the codebase. Can you please tell me if making IsDeferred was required for your case. MSI documentation doesn't say anything about it but may be it doesn't work otherwise.

New Post: Error on ManagedUI in XP

New Post: how get msi code error.

$
0
0
Object GenericSetup (WixSharp.Msi.dll ) have only ErrorStatus. Could you add error code?

New Post: .net Framework installation

$
0
0
Just letting you know that I still have no access to the files you sent me the link to. You need to grant me a special permission, publish it with public access or just send as an attachment but rename zip in something obscure:

Image

New Post: how get msi code error.

$
0
0
Not a problem.
Grab the latest NuGet prerelease v1.0.41.2 and you can use MsiSession.MsiErrorCode property, which is set to the return value of the MsiInterop.MsiSetExternalUI

New Post: how get msi code error.

New Post: silent butstrapper

New Post: Launch application after install as normal user


New Post: .net Framework installation

$
0
0
I just logged into my gmail and saw you requested permissions. Sorry about the delay. I was busy with something and didn't log in for a bit. I think you should be able to get it now.

I didn't know about the .net and zip not getting along. I guess I should reconsider zipping up my setups from now on. heh. I've been doing it that way since 2003 or there abouts.

Yep ranting thread on security sounds good :D

New Post: Launch application after install as normal user

$
0
0
The scenario you are describing is rather less common as usually the after-install executions need top be elevated (e.g. product itself or its config util) That is why the AfterInstall event handlers are scheduled by Wix# as deferred (elevated).

Meaning that events are not completely suitable for you. You will need to use managed custom actions instead. The code below shows how to start Notepad with normal user privileges:
var project = new Project("CustomActionTest",
        new Dir(@"%ProgramFiles%\My Company\My Product", 
            new File("setup.cs")),
        new ManagedAction(CustomActions.RunNotepad, Return.check, 
                          When.After, Step.InstallFinalize, Condition.NOT_Installed)
        ...        

publicclass CustomActions
{
    [CustomAction]
    publicstatic ActionResult RunNotepad(Session session)
    {
        try { Process.Start("notepad.exe"); } catch { }

        return ActionResult.Success;
    }
}        

New Post: silent butstrapper

$
0
0
Yes it is. And you will find the sample in the distro. It's called WixBootstrapper_NoUI

New Post: Can't run code once upgrading from 1.0.7.0 to 1.0.41.0

$
0
0
I've moved to the recent package.... and it's not working very well for me.
My guessed culprit is the conditions are not by default embedded into CDATA which causes to my patches to throw an exception on parsing the Xdocument while called from Compiler.WixSourceGenerated += WixSharpPatches since this is not conformed to XML format.

Any knows how to overcome this problem or encountered a similar issue?
I've recently see ToCdata method but how this could be used in this context.

Any advice is welcome.

Michael

New Post: how get msi code error.

$
0
0
how I can get MSI property value? (new RegValueProperty("FLASH_CURRENT_VERSION", RegistryHive.LocalMachine, @"SOFTWARE\Wow6432Node\Macromedia\FlashPlayerActiveX", "Version"))
Viewing all 1354 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>