Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cleanup': 0.07; 'pywin32': 0.09; 'am,': 0.14; 'wrote:': 0.14; "'%d": 0.16; 'from:name:mark hammond': 0.16; 'received:192.168.0.9': 0.16; 'reply- to:addr:mhammond': 0.16; 'reply-to:addr:skippinet.com.au': 0.16; 'url:svn': 0.16; 'url:trunk': 0.16; 'argument': 0.16; 'cc:addr :python-list': 0.17; '(which': 0.20; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'stuff': 0.22; 'maybe': 0.23; 'cc:no real name:2**0': 0.23; 'here?': 0.23; 'smallest': 0.23; 'subject:skip:b 10': 0.23; 'subject:not': 0.23; 'url:view': 0.23; 'code': 0.24; "doesn't": 0.25; 'there.': 0.25; 'script': 0.27; 'example': 0.27; 'work.': 0.28; 'cc:addr:python.org': 0.30; 'installer': 0.30; 'seemingly': 0.30; 'hi,': 0.31; 'post': 0.33; '...': 0.34; 'install': 0.34; 'received:209.85.212': 0.34; 'source': 0.34; '[1]': 0.34; 'header:User-Agent:1': 0.35; 'message-id:@gmail.com': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'checks': 0.37; 'url:python': 0.38; 'url:org': 0.38; 'run': 0.38; 'but': 0.38; 'creates': 0.38; 'docs': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.38; 'should': 0.39; 'received:209': 0.39; 'according': 0.63; 'header:Reply-To:1': 0.72; 'url:c': 0.72; 'reply-to:no real name:2**0': 0.72; 'run?': 0.84; 'url:install': 0.84; 'received:209.85.212.177': 0.91; 'received:mail-px0-f177.google.com': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xXMYlRSaM6567PIXkXZy/d9Rci7vaJVU+b0oUUCntfY=; b=rNf+wjCwuduWwZ7ZR8V7lfY1Cqia3i5bvy2OvYHIutUjBz2e19QUIvl05wT+8jLH8a E/dnugwoi97bhKYIaUNNB7kjCS7IYuPfsKd3V8sb0WHifKHkAWgP/iw0ehUPrODDC1ju mRm13aTwfmPTvKcvw7jUQzLlleHFWf/qZDl70= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=H7n2ghFxW/YyMGgYwJeKA8+FfrfICoSYzxfQB5XuYlOwlU7CP0J50m4tNqEDzcbdxr HjQaj7KAkfT1TbVupVlW+a/M+tw/a0By1GJCDjdSJ5cDwjQJUoBKamXle83prbgAx9dK az/9GWdZyFcTqmadmi+07T+ok9gM8UHWuErog= Date: Thu, 26 May 2011 09:46:55 +1000 From: Mark Hammond User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Wilbert Berendsen Subject: Re: bdist_wininst: install_script not run on uninstall References: <201105252128.17504.wbsoft@xs4all.nl> In-Reply-To: <201105252128.17504.wbsoft@xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: mhammond@skippinet.com.au List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306367267 news.xs4all.nl 49041 [::ffff:82.94.164.166]:32856 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6278 On 26/05/2011 5:28 AM, Wilbert Berendsen wrote: > Hi, > > according to the docs the installer bdist_wininst creates will run the > install-script on install with -install (which works perfectly) and on > uninstall with the -remove argument (which seemingly never happens). > > However I want to cleanup some registry stuff on uninstall so I want the > uninstall script to work. > > Studying the source code of the installer[1] in the Run_RemoveScript > function... > > [1] http://svn.python.org/view/python/trunk/PC/bdist_wininst/install.c > > ... it checks for the line '%d Run Script: %s' in the log, which is there. But > can anybody find out why the install script is not run? Works for me in the pywin32 install script - maybe you should make the smallest possible example that doesn't work and post the entire thing here? Mark